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
month_abbrev are also defined.
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