Skip to main content
nurcanb61753314
Inspiring
September 19, 2019
Question

how can ı take the time format like that ?

  • September 19, 2019
  • 2 replies
  • 933 views

I must take time format like that  : YYYYMMDDHH24MM SS

 

How can ı do it at coldfusıon code? Help please 😞

    This topic has been closed for replies.

    2 replies

    nurcanb61753314
    Inspiring
    September 25, 2019

    yeah ı can take time for now but when ı wıll change time this format all old data was turning this time format.what can ı do for this?

    Adobe Employee
    September 25, 2019
    Could you please elaborate on this ? An example would make us understand better.
    nurcanb61753314
    Inspiring
    September 27, 2019
    When ıam taking this format: datetimeFormat(now(), "YYYYMMDDHHNN SS") my all time is turning now time.But ı want to that for exp ıts today and ı want to only today's tıme lıke thıs.ı saw that all tıme worng.have u any ıdea?
    Adobe Employee
    September 19, 2019

    @nurcanbarlas you can use this code 

    dateTimeFormat (now(), "YYYYMMDD HHNN SS") 

    Please get back to us if you face any other issues.

    BKBK
    Community Expert
    Community Expert
    September 19, 2019
    Without just one space: datetimeFormat(now(), "YYYYMMDDHHNN SS")