Formatting Dates in MT

| | Comments (0) | TrackBacks (1)

One of the default settings in MT is not really nice: the way it formats dates. If your MT site displays leading zeros on the first nine days of each month (for example, "August 08, 2005"), it's caused by the default date format "%x".

The blog owner can fix this easily enough by editing the templates. Where the default "Main Index" template has this:

<h2><$MTEntryDate format="%x"$></h2>
change it to
<h2><$MTEntryDate format="%B %e, %Y"$></h2>
and the leading zeros will go away.

Repeat the process on each of the archive templates you use, and rebuild all the pages.

1 TrackBacks

Listed below are links to blogs that reference this entry: Formatting Dates in MT.

TrackBack URL for this entry: http://mt.stblogs.org/cgi/mt-tb.cgi/15826

Levaquin side effects. from Side effects of levaquin medicine. on February 19, 2009 5:26 PM

Levaquin side effects. Side effects of levaquin. Levaquin side effects versus avelox side effects. Read More

Leave a comment