I need to get a last date of a given month in the format of YYYYMMDD.

  • Thread starter Thread starter Mike xing
  • Start date Start date
M

Mike xing

Guest
Currently in my code i will get some date from the file reading like 'CString tsDate' in the format of YYYYMMDD(ex: 20180501)
and i need to check whether 'tsDate' is last day of that month. It means for MAY month it is 20180531 so i nned to get this date.

In my code currently am using COleDateTime class to get GetMonth() and GetYear.

Can anyone suggests me to get the last date of the month?

Continue reading...
 
Back
Top