How to find week day based on year/month/day

How to find week day based on year/month/day

Post by si » Sat, 31 Dec 2005 19:24:06


Hello

Is there a function in MFC, WinAPI that returns
day of a week (like 1=Sunday, 2=Monday, etc.) based on three values:
year, month and day.

si
 
 
 

How to find week day based on year/month/day

Post by hughgra » Sat, 31 Dec 2005 20:41:46


Have a look at the CTime class. Constuct one with your desired date
then have a look at the GetDayOfWeek member function.

Regards,

Hugh