

Inside the template file, setting the Date and Time format string as a parameter for the_time() template tag, would look something like this: Posted on. Just the same as in General Settings, this format string is a template of characters where each character represents specific part of Date or Time.
#Php time to minutes full#
l = Full name for day of the week (lower-case L).Here is what each format character in the string above represents: Each letter represents specific part of Date or Time.įor example, the format string: l, F j, YĬreates a date that look like this (note that commas are read literally): Friday, September 24, 2004 Notice the string of characters next to each Date and Time formatting in screenshot. This is the place where customizing format for Date and Time will take effect throughout the whole WordPress installation.

Certain WordPress tag functions are used to display or return date and time information the_date() and the_time() are examples of this.īy default, these functions will display or return date and time in format as it is set in Administration > Settings > General.
