v60NumWithDateBehavior

The v60NumWithDateBehavior build descriptor option specifies whether the behavior of assignments from Num fields to Date fields fulfills the behavior that was in effect in EGL version 6. This option has no effect on comparisons.
Consider the following example:
   aNum Num(8) = 20130501;
   aDate Date = aNum;

In EGL version 6, an assignment from a Num field to a Date field caused a byte-by-byte copy. The example sets the aDate field to 1 May 2013.

Starting in EGL version 7, the same statements assign the date that represents 20,130,501 days after 31 December 1899.

Values

NO (the default)
The behavior is as described for EGL version 7 and later.
YES
The behavior is as described for EGL version 6. Here are additional details:
  • No validation occurs when a value of type NUM is copied to a value of type Date.
  • If the number of digits is less than 8, the generator adds leading 0's. For example, copying 130501 to a field of type Date sets the field to 1 May 13.
  • If the number of digits is greater than 8, only the last 8 digits are copied. For example, copying 150020130501 to a field of type Date sets the field to 1 May 2013.
  • A field defined as NUM(12,3) is processed the same as a field defined as NUM(9). Decimals are ignored.

Feedback