%JUL

<< Click to Display Table of Contents >>

Navigation:  Reference > Functions >

%JUL

This function converts a number in "date" format to "day number" format.

Form of use:

DI ivar = %JUL(ivar),

The pickup ivar must have the form yyyymmdd, for example 19870612.

The putdown ivar will contain a number calculated by taking 01/Jan/1900 as day 1.

If the pickup ivar is badly formed or out or range the putdown ivar will be U (undefined).