Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Day of Date - Zeller's Algorithm


  • Please log in to reply
6 replies to this topic
A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

DayofDate()
 
As the title says , it gives dayname (Sunday, Monday) of a requested date. Based on Zeller's Algorithm
 
Examples

msgbox,% DayofDate("6 June 2013")
msgbox,% DayofDate(A_Now) ;Today's Day
msgbox,% DayofDate("2013")  ;Day of 1st Jan 2013

Github
Direct Download
 
P.S.

  • I have included polyethene's DateParse() [Many Thanksgrin.png ] in my script for parsing dates. If you already have one copy, you can delete mine's

Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


guest3456
  • Members
  • 1704 posts
  • Last active: Nov 19 2015 11:58 AM
  • Joined: 10 Mar 2011
nice, well done

A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

nice, well done

Thanks,

but is it you? [joking]grin.png


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


gunner
  • Members
  • 79 posts
  • Last active: Aug 11 2013 11:18 AM
  • Joined: 05 Jun 2013

thank you for this.



A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

thank you for this.

Mention Notgrin.png


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


Relayer
  • Members
  • 122 posts
  • Last active: Jun 22 2015 09:21 PM
  • Joined: 24 Nov 2008

Hi,

 

I've been using the following for this function:

 

Spoiler

 



A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

Hi,

 

I've been using the following for this function:

 

Spoiler

Good , I didnt knew about the options available in FormatTime.

If I had, I definitely wouldn't have done it this way. I thought AHK cant give day names at all and so I looked for a mathematical solution


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan