SIDATE - convert standard date to ASCII string.

Usage:

B:
   string = sidate( string, daynumber );
C:
   char *sidate(char *string, int daynumber);

Where:

string
points to a location in memory where the ASCII date string is to be placed.
daynumber
is the number of days since January 1, 1900 (day zero).

Description:

SIDATE is intended to complement DATESI. SIDATE converts the integer number of days since January 1, 1900 into an ASCII string of the form "mm/dd/yy". "string" must point at a storage area which is at least three words long so that it can hold eight ASCII characters and a '*0'.

If the number of days passed is unreasonable ( <0 or >36524 ), the "string" which SIDATE returns is meaningless.

See Also:

expl b lib datesi

Copyright © 1996, Thinkage Ltd.