date format string

Stimulsoft Reports.NET discussion
Post Reply
kurdt
Posts: 4
Joined: Thu Feb 18, 2010 6:27 am

date format string

Post 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
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

date format string

Post by Brendan »

Code: Select all

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

Code: Select all

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