News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Get year by weekday and date

Started by jj2007, December 20, 2024, 08:21:18 PM

Previous topic - Next topic

jj2007

Going through old notes, I found an entry saying Monday, 6.12. but no year. So I tried to find an utility telling me which year it could have been - and found nothing. So here it is, enjoy :cool:

Current date is venerdì 20.12.2024
Day of the week:        venerdì
Date without year:      20.12.
Start year:            1990
End year:              2030
venerdì 20.12.1991
venerdì 20.12.1996
venerdì 20.12.2002
venerdì 20.12.2013
venerdì 20.12.2019
venerdì 20.12.2024      <----------- today
venerdì 20.12.2030

As you can see, it expects the weekday in your local language; which may be English, of course.

Source is in RTF format, and it's 23 lines of MasmBasic :biggrin:

zedd151

A date without year, is only day.month or month.day perhaps? Arbitrary or undefined year?
Or is it really meaning 6:12 (time), a typo? Still arbitrary (AM/PM undefined)

Year is arbitrary or undefined in the first case, I doubt it can be determined with any code or program. Unless you are looking for something of globally historic significance, from a certain date without knowing the year? I don't get it.

Edit after re-reading the post...
Your own notes?  :joking:
In that case, good luck with that.  :smiley:

Still later after pondering this...
Oh. Now I get it. You wanted to find out in what years that "Monday 20th December" ("6th" in initial post) could have been?

jj2007

Zedd, the downloaded 0 times tells me that you didn't try it...

Quote from: zedd151 on December 20, 2024, 08:57:56 PMYou wanted to find out in what years that "Monday 20th December" ("6th" in initial post) could have been?

Yes.

zedd151

#3
Im on my iPad. Plus it's 4 o'clock in the morning here. I am not fully coherent just yet...