Support

Account

Home Forums General Issues Difficulties to sort a post by DatePicker Reply To: Difficulties to sort a post by DatePicker

  • 
    // what value is being returned from acf
    echo get_field('end_date', false, false);
    
    //What is this producing?
    $date_one_timestamp = strtotime(get_field('end_date', false, false));
    echo $date_one_timestamp;
    
    // and what happens here
    echo (date('Y-m-d H:i:s', $date_one_timestamp));