home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
progc
/
cfuncs.arj
/
CONVDATE.DOC
< prev
next >
Wrap
Text File
|
1991-05-14
|
1KB
|
27 lines
/*---------------------ConvertDate------------------------------*/
/*DESCRIPTION: Converts a date in src_format to a date in */
/* dest_format. May take the system date as input. */
/* */
/*INPUT: */
/* src_format = */
/* 0 -- Julian date (unsigned int) */
/* 1 -- System date */
/* 3 -- MMDDYY */
/* 4 -- YYMMDD */
/* 5 -- MM-DD-YY */
/* 6 -- MM/DD/YY */
/* 7 -- M-D-YYYY */
/* 8 -- M/D/YYYY */
/* */
/* dest_format = same as src_format except */
/* 1 -- Month D, YYYY */
/* 2 -- Weekday, Month D, YYYY */
/* 9 -- 0-6 (char) for day of week with 0 -> Sunday */
/* */
/*RETURNS: 0 for a valid date */
/* -1 for an invalid date or format */
/*USES: MidStr, ValToDate, DateToVal, validdate */
/*--------------------------------------------------------------*/
int ConvertDate(void *dest_date, void *src_date, int dest_format, int src_format)