• Resolved Anticosti

    (@anticosti)


    Greetings,

    I am desesperatly seeking to output the
    publish time as i.e.: “11/04/2018 22:30”
    I tried both below but no sucess with the time output.

    Date 1: [field date_time format=”d-m-Y H:i”]<br>
    Date 2: [field date]<br>
    
    Date 1: 11/04/2018
    Date 2: 11/04/2018

    How could I edit the shortcode to output also the time?

    Thanks in advance.

    • This topic was modified 6 years ago by Anticosti.
    • This topic was modified 6 years ago by Anticosti.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Peter Berger

    (@peterpolow)

    Try to use date_format, not format.

    This code is working on my website.

    [field date date_format="D j M Y //o//m H:i"]

    Peter

    Thread Starter Anticosti

    (@anticosti)

    @peterpolow
    Thanks a bunch!!!
    That works perfect now.

    Awesome!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[field date_time format=”d-m-Y H:i”]’ is closed to new replies.