// The program below gives the output "10/010/01"
//But I only want the dd of mm/dd/yy.
//How do I extract just the day? Thanks.
#include <time.h>
#include <iostream.h>
#include <string.h>
int main()
{
char datebuf[9];
char day[2];
char *digit1=&datebuf[3];
char *digit2=&datebuf[4];
_strdate(datebuf);
strcpy(day,digit1);
strcat(day,digit2);
cout<<day<<endl;
return 0;
}