Template:Dts/doc

Normally, for proper sorting in tables, dates must be entered in YYYY-MM-DD format. This template automatically creates the hidden  for sorting purposes and then displays the date like this: July 4, 2010, so the date is both easy to read and sorted properly in sortable tables.

For instance, 3-5-2011 turns into 3-5-2011. Days and months don't have to be entered, typing 3 turns into 3.

Example: