• Resolved czombos

    (@czombos)


    Hi,

    I’ve searched around but I haven’t found a solution to change the format of the $form_data[‘date_created’] to Y/m/d.

    Can you please help me with that?

    It would be much appreciated.

    Thanks in advance!

    • This topic was modified 4 years ago by czombos.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Hi there,

    Use PHP’s date function:

    
    date( 'Y/m/d', strtotime( $form_data['misc']['date_time'] ) );
    
    Thread Starter czombos

    (@czombos)

    Hi,

    Okay so I’ve placed:

    <?php echo date( 'Y/m/d', strtotime( $form_data['misc']['date_time'] ) ); ?>

    and its working as expected.

    Thank you, your help is much appreciated!

    Best Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change the “date_created” format to Y/m/d ?’ is closed to new replies.