I am looking to save and re-use dates which needs to be displayed in a format such as Oct. 25
.
How do I do that please?
I read the documentation in datetime
package. They do have shortmonthname
which would display months by the abbreviation. They also allows storing and displaying stored dates. But I don't know how to combine the two.
Best Answer
With
datetime
dates can be stored to a symbolic name, say 'mydate' with\newsavedate{mydate}{daynumber}{monthnumber}{yearnumber}
\displaydate{mydate}
will display this date using the current date format, whereas\getdatemonth{mydate}
will extract the month of the saved date.Using
\shortmonthname[\getdatemonth{mydate}]
it's possible to show the 3-letter abbreviation of the month (see the example)Update
Using a
\newdateformat
any call to\mydateformat
will show this format, that's why a 'wrapper macro' (or grouping) is appropiate: