0

Hi

I am using the code to get the current date
CTime aNow = CTime::GetCurrentTime();
char month[3];
char day[3];
char year[6];
char todaysdate[30];

itoa(aNow.GetMonth(), month, 10);
itoa(aNow.GetYear(), year, 10);
itoa(aNow.GetDay(), day, 10);

strcat(todaysdate,month);

I am getting value of month but apart from that I am also getting an unexpected character "He"

so My final output is

He 12

Why this extra He is coming.

Kindly advice

Regards
Karan

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by cikara21
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.