Page 1 of 1
Date / Time formatting
Posted: Thu Oct 11, 2012 5:21 am
by Chipo
Hi,
how can I format date / time in the report
for example
date: Friday, 07 December 2012
time: 18:30 (06:30 PM)
Best regards.
Re: Date / Time formatting
Posted: Fri Oct 12, 2012 5:38 am
by HighAley
Hello.
Chipo wrote:how can I format date / time in the report
for example
date: Friday, 07 December 2012
time: 18:30 (06:30 PM)
You could set format with C# syntax
http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx
In your case it will be look next:
Code: Select all
{Today.ToString("dddd, dd MMMM yyyy")}
{Time.ToString("HH:mm (hh:mm tt)")}
Also you could use Text Format property of the text component.
Look at the attached report template.
Thank you.
Re: Date / Time formatting
Posted: Sun Oct 14, 2012 9:01 pm
by Chipo
Thank you. Awesome. This works.
Re: Date / Time formatting
Posted: Mon Oct 15, 2012 3:42 am
by Andrew
Hello,
Have a great day!