Function getdate

Top 

Declaration:

void getdate(int date[]);

Description

Obtains the current computer date. The time information is stored in the date array:

date[0] - day (1...31)

date[1] - month (1...12)

date[2] - year

Example

  int date[3];

  getdate(date);

  printf("Date: %d/%d/%d", date[0], date[1], date[2]);