home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / progc / cfuncs.arj / CONVDATE.DOC < prev    next >
Text File  |  1991-05-14  |  1KB  |  27 lines

  1. /*---------------------ConvertDate------------------------------*/
  2. /*DESCRIPTION:    Converts a date in src_format to a date in      */
  3. /*    dest_format.  May take the system date as input.    */
  4. /*                                */
  5. /*INPUT:                             */
  6. /*  src_format =                                                */
  7. /*  0 -- Julian date (unsigned int)                             */
  8. /*  1 -- System date                                            */
  9. /*  3 -- MMDDYY                                                 */
  10. /*  4 -- YYMMDD                            */
  11. /*  5 -- MM-DD-YY                                               */
  12. /*  6 -- MM/DD/YY                                               */
  13. /*  7 -- M-D-YYYY                                               */
  14. /*  8 -- M/D/YYYY                                               */
  15. /*                                                              */
  16. /*  dest_format =  same as src_format except            */
  17. /*  1 -- Month D, YYYY                        */
  18. /*  2 -- Weekday, Month D, YYYY                    */
  19. /*  9 -- 0-6 (char) for day of week with 0 -> Sunday         */
  20. /*                                                              */
  21. /*RETURNS: 0 for a valid date                    */
  22. /*       -1 for an invalid date or format            */
  23. /*USES: MidStr, ValToDate, DateToVal, validdate         */
  24. /*--------------------------------------------------------------*/
  25.  
  26. int ConvertDate(void *dest_date, void *src_date, int dest_format, int src_format)
  27.