Template:Dts

To sort properly, dates should be in YYYY-MM-DD format. This template introduces a hidden element in that format, followed by the display date.

For the most part you can just wrap this template around whatever date you want to display. Specifically, it will accept anything that php's strtotime function accepts.

The wikipedia version is much more complete, allowing several parameter variants and different display formats. Maybe a CC-BY version will get there eventually.