How do you format the date as a two digit year? (ex. “10.12.10” instead of “10.12.2010”)

I did a pretty thorough search and found a couple of closed (and unanswered) topics on the WP forums. Does anyone know if this is possible? The codex doesn’t specify this as an option.

Thanks!

2 Answers
2

You use a lowercase y for a 2 digit year.

For example (l, F j, Y) –> returns, Friday, September 24, 2004

and (l, F j, y) —> returns Friday, September 24, 04

Leave a Comment