Access function to return day of the week

Sometimes you need the actual day name of the date and not the numeric equivalent, the following function will do that for you:

Example use in debugger window:

ADVERTISING
MS Access Consulting

?MyWeekDayName(#10/19/2009#)

Monday

2010-07-13T19:50:36+00:00

About the Author:

Juan Soto is a Senior Access Developer at IT Impact Inc. and a Microsoft Access MVP. He specializes in Access with SQL Server databases. His passion for Access has led him to helping a wide range of businesses in helping them establish a secure, stable and efficient environment with SQL Server. He's a frequent speaker at Access user groups nationwide and recently spoke at the Orange County SQL Saturday # 73. If you wish to have Juan speak at your next group meeting you can contact him here.

2 Comments

  1. SimonG April 2, 2012 at 4:00 pm - Reply

    Almost, actually what comes back is a day out, when fed a date that should be a Monday, “Tuesday” is returned, a date occurring on a Thursday returns “Friday”, etc.

    • Juan Soto April 2, 2012 at 7:26 pm - Reply

      Hi Simon,

      The function works for me as advertised, could it be in your country the month and date is switched to dd/mm/yy? Here in the US it’s mm/dd/yy.

      Let me know
      Juan

Leave A Comment

 

Contact Us
close slider
  • This field is for validation purposes and should be left unchanged.