See the [man]datetime[/man] functions in the manual, especially [man]strtotime[/man] and [man]date[/man].
I know, I know – hardly an obvious place to look, and you wouldn't think the information would be found in such a silly place.... But however inexplicable it may be, that's where it can be found.