Program to display the Date and Time in C

#include <stdio.h>
#include <time.h>
void timeNdate();
void main()
{
timeNdate();
getch();
}
void timeNdate()
{
char dateStr [9];
char timeStr [9];
_strdate( dateStr );
printf( "The current date is %s \n", dateStr);
_strtime( timeStr );
printf( "The current time is %s \n", timeStr);
}