Home Forums Feature Requests Date format in meta table Reply To: Date format in meta table

  • Hi @timbofield

    No ACF saves the date -format in Ymd since that’s the most versatile dateformat to work with. However this shouldn’t be a problem since you can easily retrieve it on the front end where you need it and reformat it to yy-mm-dd (or Y-m-d as it would be with PHP).

    So if I where you I’d make sure that when you save the meta value outside of ACF to save it as Ymd like this:
    $Ymd = date('Ymd', strtotime($mydatestring));

    and to display it in whatever format you want on the front end you do a very similar:
    echo date( 'Y-m-d', strtotime( get_field('my_date_field') ) );