I just wanted to ask, how to do something like this - I have my own macro, that needs custom date passed as arguments:

This is regarding your loan application that was on \formatdate{#1}{#2}{#3}.}

And then I use this macro in the text with custom day, month and year. But LaTeX shows me current date. So, what is wrong? Is it because the date isn't known in the preambule (and current date is used as default)? Thank you for your hints.

  • 1
    Welcome to TeX.SE. It is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. This will also serve as a test case and ensure that the solution actually works for you. Jun 9, 2012 at 19:14

1 Answer 1


Not sure how you are using this macro, but for me it produces the date that I specify in the parameters to the macro:

enter image description here



This is regarding your loan application that was on \formatdate{#1}{#2}{#3}.}%

  • Yeah, I just created another file and it works. So, the mistake have to be in another place. I guess this could be the problem: \newdateformat{todaydate}{% \ordinal{DAY} \monthname[\THEMONTH] \THEYEAR} \todaydate
    – Droidik
    Jun 9, 2012 at 19:34

You must log in to answer this question.

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