Displaying Dates and Times (datetime2.sty)
This example requires the datetime2 package, but with the en-GB option it additionally requires the datetime2-english module.\documentclass{article} \usepackage[en-GB]{datetime2} \newcommand*{\DateStamp}{2015-11-28T20:13:04Z} \DTMsavetimestamp{mydate}{\DateStamp} \DTMsavetimestamp{mydate2}{2014-06-01T09:01:58+01:00} \begin{document} Now: \DTMnow. Saved: \DTMuse{mydate}; \DTMuse{mydate2}. \end{document}
Download sample-datetime2.tex or sample-datetime2.pdf.