Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_strdate() copy system date to string</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _strdate()              Copy System Date to String

 #include   <time.h>

  char *_strdate(date);
  char *date;  Current date

    _strdate() copies the current system date to the buffer that date
    points to. The string is formatted mm/dd/yy, where mm is two digits
    representing the month (01 - 12), dd is two digits representing the
    day (01 - 31), and yy is two digits representing the year (00 - 99).

    Returns:    System date in buffer pointed to by date. There is no
                error return.

      Notes:    The buffer date must be at least nine bytes long.

   Portability:     MS-DOS only

 -------------------------------- Example ---------------------------------

 This program prints the current system date

           #include <time.h>

           main()
           {
              char date[9];

              _strdate(date);
              printf("The current system date is %s\n", date);
           }


See Also: _strtime() asctime() ctime() gmtime() localtime() time()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson