Latest news 2024-02-16: Experimental (unstable) datatool v2.49a available for testing. Download from the experimental page if you would like to try it out.

Feature Tracker RSS feed

I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)

ID 31🔗
Date: 2015-01-30 08:34:11
Status Closed (Can not Implement)
Category datetime
Summary YY (instead of YYYY) for new date formats

Sign in to subscribe to notifications about this report.


Predefined macros can do YY, but own date formats can't. Something like THEDECADE would be great. (Maybe also THECENTURY while we are here?)

Wolfram Sang


No mwe.tex


datetime.sty has now been made obsolete but it has been replaced by datetime2.sty which now has commands for obtaining the final two digits of the year (\DTMtwodigits{2015} -> 15), the century (\DTMcentury{2015} -> 21) and year/100 (\DTMdivhundred{2015} -> 20).



Add Comment

Name (optional):

Are you human? Please confirm the feature request ID (which can be found at the top of this page) or login if you have an account.


You can use the following markup:


[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]

Ordered list:
[li]first item[/li]
[li]second item[/li]

Unordered list:
[li]first item[/li]
[li]second item[/li]

You can use the Preview button to review your message formatting before submitting.

Page permalink: