Page 1 of 1

date format string

Posted: Wed Feb 24, 2010 8:31 am
by kurdt
Hello,
how can I print date with required format? If I print only date, I can use Properties->Text Format->Date and then choose some format. But I want to print text like this: "Date of print: {Today}". Only function I've found is DateToStr but it doesn't have format string as parameter.
Thank you

date format string

Posted: Wed Feb 24, 2010 11:41 am
by Brendan

Code: Select all

Date: {Format("{0:MM.dd.yyyy}", Today)}
or

Code: Select all

Date: {Today.ToString("MM.dd.yyyy")}