Column 10 contains a Julian date in the form ddd-yyyy and 13 weeks are to be added to it to create the output field.
Column 10 contains a Gregorian date in the form X’0yymmdds’ and 30 days are to be subtracted from it to create the output field.
DATEDIFF |
Use DATEDIFF to compute the interval between two date values. It returns a numeric value that can be used in expressions or formatted with an EDIT pattern; the default formatting will be with mask M0 for 15 digits, generating a 16-byte field. The value is calculated by counting the number of unit boundaries between the two date values. Therefore, there is no rounding. For example, when unit is DAY, the value is the number of midnights between datefield1 and datefield2 - midnight is the boundary between one day and the next. Similarly, the week boundary is defined as midnight on Sunday; the month boundary is midnight of the last day of the month, and so on. The following describes the DATEDIFF parameters:
|