Common Routines

Description

Calculating the day of the week, is very simple, once you know the Julian Day Number.

Gory details

There are two routines available to calculate the day of the week.

dayofweek returns the day of the week for a given Julian Day Number as a number (from 1 to 7).

weekdayname returns the name of the day of the week for a given Julian Day Number as a number (from 1 to 7). This routine can return the name of the day in several user selectable languages.

Last update

Julian Day Number:2452166
Civil (Gregorian) date:Thursday, 13 September 2001
Julian date:Thursday, 31 August 2001
Hebrew date:yom xamishi, 25 Elul 5761
Islamic date:Al-KHamees, 25 Jumada II 1422
Persian date:Panjshanbeh, 22 Shahrivar 1380

Back to Calendar Math. 

mail me
Kees Couprie
 

Other pages by the same author.