The day corresponds to 01/01/0001
Solved
haylox
Posted messages
169
Status
Membre
-
haylox Posted messages 169 Status Membre -
haylox Posted messages 169 Status Membre -
Hello,
I've looked everywhere but I couldn't find the day corresponding to the date 01/01/0001. I need it to write a program that gives the day corresponding to any given date. If anyone knows the name of this day, please let me know.
I've looked everywhere but I couldn't find the day corresponding to the date 01/01/0001. I need it to write a program that gives the day corresponding to any given date. If anyone knows the name of this day, please let me know.
1 réponse
Hello
The 1/1/1 never existed, our calendar does not apply before the creation of the Gregorian calendar.
But if you want to try your program, you just have to assume that it's a Monday, calculate what day of the week today is, and adjust your hypothesis accordingly.
You know there are built-in functions for that in all programming languages, right?
The 1/1/1 never existed, our calendar does not apply before the creation of the Gregorian calendar.
But if you want to try your program, you just have to assume that it's a Monday, calculate what day of the week today is, and adjust your hypothesis accordingly.
You know there are built-in functions for that in all programming languages, right?
haylox
Posted messages
169
Status
Membre
9
Thank you for your reply, and no, I don't know but our teacher gave us a mini project to do IT OURSELVES which consists of writing a program that displays the calendar for a given year, so I have to do it my own way :) Thanks once again for the response, I took Monday as the 1st day and it worked.