Skip to main content
nurcanb61753314
Inspiring
Sep 19, 2019 7:20 AM UTC
Question

how can ı take the time format like that ?

I must take time format like that  : YYYYMMDDHH24MM SS

 

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

    This topic is closed to new replies. Start a new post to keep the conversation going.

    7 replies

    nurcanb61753314
    Inspiring
    Sep 25, 2019 11:01 AM UTC

    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?

    Translate
    Adobe Employee
    Sep 25, 2019 11:04 AM UTC
    Could you please elaborate on this ? An example would make us understand better.
    Translate
    nurcanb61753314
    Inspiring
    Sep 27, 2019 11:43 AM UTC
    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?
    Translate
    Adobe Employee
    Sep 19, 2019 8:17 AM UTC

    @nurcanbarlas you can use this code 

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

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

    Translate
    BKBK
    Community Expert
    Community Expert
    Sep 19, 2019 7:42 PM UTC
    Without just one space: datetimeFormat(now(), "YYYYMMDDHHNN SS")
    Translate