I've tried googling around and all I have found is a lot of example on how to format \today
. But that isn't what I want. Instead, I want a way to format historical dates based on the localization given to babel.
Say, 'June 3rd 1994' in USenglish and UKenglish?
Best Answer
Here's how to do it using
datetime
:Result:
Edit:
The
datetime
package has now been replaced withdatetime2
. This only requires a few minor changes to the above example:The result looks like:
I've used the expandable version
\DTMdisplaydate
. This can be used in PDF bookmarks. There's a robust non-expandable version\DTMdate
that has a slightly different syntax:The result is the same.