DAYMON - convert date to dd/mmm/yy format.

Usage:

B:
   str = daymon( string );
C:
   char *daymon(const char *string);

Where:

string
is a B string, possibly containing a valid date. It should be a vector at least three words long.

Description:

DAYMON calls GETDAT to see if "string" contains a valid date.

Assuming "string" does contain a valid date, DAYMON will convert that date to the format DD/MMM/YY. For instance, "04/24/80" would become "24/apr/80". If "string" does not contain a valid date, DAYMON will determine the current date and convert that to the above format. In both cases, the previous contents of "string" are written over with the newly formatted date.

"string" is returned as the value of the function.

See Also:

expl b lib getdat

Copyright © 1996, Thinkage Ltd.