LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: talaadun on September 03, 2016, 07:13:16 AM

Title: How to use dateFormat()?
Post by: talaadun on September 03, 2016, 07:13:16 AM
LimeReport is really great!

I need to display current date time on report. I used now() but the format is not what i want:

2016-09-03T12:08:18     <---- why a 'T'  is in the middle?

I noticed there are dataFormat(), dateTimeFormat(),... but i don't know how to use it to display current data time, and i didn't find the description in the user manual.

Thanks!
Title: Re: How to use dateFormat()?
Post by: Subst on September 04, 2016, 11:42:19 AM
It's the ISO representation of DateTime.

U can get other representation like this

$S{dateTimeFormat(now(),"yy.MM.dd hh:mm:ss")}
Title: Re: How to use dateFormat()?
Post by: talaadun on September 05, 2016, 07:31:56 AM
Thanks Subst!  ;D
Title: Re: How to use dateFormat()?
Post by: Subst on September 05, 2016, 08:56:39 AM
U a welcome