DATESI - convert date in ASCII string to a standard form.

Alternate Entry Name: DAT.SI

Usage:

B:
   daynumber = datesi( string );
C:
   int datesi(const char *string);

Where:

string
is an ASCII string of the form MM/DD/YY.
daynumber
is the number of days since January 1, 1900 (day 0).

Description:

DATESI is intended primarily for mapping dates to the integers for comparison and sorting. The "daynumber" may be converted into an ASCII string date with the function SIDATE.

Note that DATESI only applies to dates in this century, and that year 00 is taken to be 1900.

Further note that the day of the week of any day may be easily determined, knowing that January 1, 1900 was a Monday. (Consider "daynumber % 7".)

See Also:

expl b lib date

expl b lib sidate

Copyright © 1996, Thinkage Ltd.