Support

Account

Home Forums Front-end Issues Format date-time picker output

Helping

Format date-time picker output

  • Hi everyone,

    I use the date-time picker for displaying events in a chronological order.
    Everything works fine, but I would love to format the output in a different way.

    Here is what I have:

    d.m.y H:i
    08.01.17 21:15

    But I would like to get something like this:

    <strong>d.m.y</strong><br>H:i
    08.01.17
    21:15

    Any help appreciated. Thanks!

  • Cant you just split it into 2 variables?

    $date = date(‘d-m-y’);
    $time = date(‘H:i’);

    <?php echo “” . $date . “<br/>” . $time; ?>

    Obviously don’t know the context in which you’re using it, but that should work.

    hth

    webecho

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Format date-time picker output’ is closed to new replies.