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

Author Topic: How to use dateFormat()?  (Read 4704 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: 450
    • 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: 450
    • View Profile
Re: How to use dateFormat()?
« Reply #3 on: September 05, 2016, 08:56:39 am »
U a welcome