The day corresponds to 01/01/0001

Solved
haylox Posted messages 169 Status Member -  
haylox Posted messages 169 Status Member -
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.

1 answer

  1. le père
     
    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?
    8
    1. haylox Posted messages 169 Status Member 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.
      0