Hey guys ,
I need some help in writing a C code for a calendar problem.
I need to write a code to find the day of the week if the month and year are entered by the user.
Not able to get the logic for it.
I need this as soon as possible..
Please help me out with this
fuller
0
Newbie Poster
Recommended Answers
Jump to Postfunctions and structure in time.h will give you that information.
- First put the day, month and year in a struct tm structure. Then call mktime() to populate the rest of the structure. tm_wday contains the day of the week.
All 4 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
jnawrocki
-3
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
jnawrocki
-3
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.