Wordpress uses weekday global variable to access, exactly what it says, names of the weekdays. It is a one dimensional array set in the file [wordpress root folder]/wp-includes/locale.php. It stores localized values. Additional global variables like weekday_initial, weekday_abbrev, month, month_abbrev are also defined.
Wordpress uses weekday internally. Wordpress provides following functions, defined in [wordpress root folder]/wp-includes/template-general-functions.php for use within the loop:
- the_date($format=’ ‘, $before=’ ‘, $after=’ ‘, $echo = true): access date details of the current post.
- the_time($format=’ ‘): access time details of the current post.
The weekday can be accessed by using the format options specified here
Back to full list of global variables.
Technorati tags: weekday



August 10th, 2006 at 7:56 pm
[...] weekday [...]
August 15th, 2006 at 10:13 am
[...] Just like weekday, Wordpress uses month global variable to store the month names. It is a single dimensional array set in [wordpress root folder/wp-includes/locale.php]. It stores the localized values of the month names. [...]