Sorry to trouble you again, but I am stuck with the following. In my documentation I frequently use a particular date, which is not "today's date". I may want to refer to this date in various formats. For example, in a table I would like it to show as "26/04/13" - a nice short format to conserve table space. While in the main text I may want to use "26 April 2013".
Since the date will be referenced frequently, I thought to assign it to a macro. This is what I have so far:
In the preamble:
Code: Select all
\usepackage{datetime}
\newdate{mylongdate}{26}{04}{2013}
Code: Select all
This document refers to the work performed on \displaydate{mylongdate}.
Code: Select all
This document refers to the work performed on Friday 26th April, 2013.
\usepackage{datetime}
to \usepackage[ddmmyyyy]{datetime}
, I can see that this influences the output to "26/04/2013". Great! However, if I want to use the "mylongdate" macro somewhere else in my document, it will always display the same way.I would like to accomplish something like this in the preamble:
Code: Select all
\newdate{mydate}{26}{04}{2013}
\newcommand*{\mylongdate}{\formatdate[long]{mydate}}
\newcommand*{\myshortdate}{\formatdate[ddmmyy]{mydate}}
Perhaps someone can steer me in the direction on how to tackle the problem, not necessarily following my thought pattern.
Thank you.