I'm using the vc bundle to feed \date with the date from the latest git commit. Is there a way to format this date in the same format as the output from \today? I know of the different date formats in the vc bundle manual but none correspond to the format of today.

Here's an example to work with:


\date{\VCDateISO}% I want to format this date...



\today% ... like this date.


2 Answers 2


The VC manual states that \VCDateISO returns the date as YYYY-MM-DD. If this is the case you can use the following code to extract the three values and set TeX date registers accordantly. Then \today will return this date instead. This should of course happen inside a group.







I can't test it myself because the VC bundle is not part of TeXLive or MikTeX and I don't want to install it manually just for that.

If you would use svn-multi instead you could simply use \svntoday. Contrary to what the VC documentation says the current version also support binary files.


With the isodate package, you can do this fairly simply:


Note isodate needs a language to be specified, so if you aren't using babel then you need to call a language option explicitly.

Awkwardly, american and english differ in how they print dates. Calling \usepackage[english]{isodate} changes how the date appears even just with \today.

  • This works except there seems to be a comma missing...
    – Seamus
    Commented May 24, 2011 at 11:13
  • Yes. This prints "24th May 2011" instead of "May 24, 2011".
    – N.N.
    Commented May 24, 2011 at 15:25
  • I think the isodate manual is the best place to check for other possible formats
    – Seamus
    Commented May 24, 2011 at 21:11
  • 1
    @N.N. I have edited my solution and it should work exactly as desired now.
    – Seamus
    Commented May 29, 2011 at 12:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .