Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: How to use dateFormat()?  (Read 3031 times)

talaadun

  • Newbie
  • *
  • Posts: 11
    • View Profile
How to use dateFormat()?
« 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!

Subst

  • Sr. Member
  • ****
  • Posts: 444
    • View Profile
Re: How to use dateFormat()?
« Reply #1 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")}

talaadun

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: How to use dateFormat()?
« Reply #2 on: September 05, 2016, 07:31:56 AM »
Thanks Subst!  ;D

Subst

  • Sr. Member
  • ****
  • Posts: 444
    • View Profile
Re: How to use dateFormat()?
« Reply #3 on: September 05, 2016, 08:56:39 AM »
U a welcome