Day of Week Program

I need to write a program that tells the day of the week, month, day, year, and whether it is a leap year or not from a input of MM DD YYYY form. I'm new to programming, so I am not really sure where to start. Any advice would be appreciated. Thanks

Example:
Enter numeric values for month, day and year of a date> 10 31 1990
Wednesday, October 31, 1990 occurred in a non-leap year.
Last edited on
There are many ways to do this. The standard C++ library does not provide this functionality, but you can use the C library and/or other 3rd party libraries to get the current date and time.
Are you supposed to give anything as input? If not, then you'll have to use a library to fetch the current time.
Yes the input is a date such as 10 31 1990 in MM DD YYYY format. I think there is some confusion, but the program does not need to tell the time.
why not program yourself? that way you can input old dates like 1886, or even 300 BC.
you need to program leap year algorithm and total days in a year up to imputed day.
Topic archived. No new replies allowed.