_strdate

copy the current date into a given buffer

Synopsis:

#include <time.h>
char *_strdate( char *datestr )

Description:

The _strdate() function copies the current date to the buffer pointed to by datestr. The date is formatted as MM/DD/YY, where

MM
is two digits representing the month
DD
is two digits representing the day
YY
is two digits representing the year

The buffer must be at least 9 bytes long.

Returns:

a pointer to the resulting text string, datestr

See also:

asctime(), ctime(), gmtime(), localtime(), mktime(), _strtime(), time(), tzset()

Examples:

#include <stdio.h>
#include <time.h>

void main()
  {
    char *date;
    char datebuff[9];

    date = _strdate( datebuff );
    printf( "%s\n", date );
  }

Classification:

WATCOM

Systems:

All (except Netware, DOS/PM)