Support

Account

Home Forums General Issues If DatePicker date is less than 1 year old Reply To: If DatePicker date is less than 1 year old

  • Hey Trishah,

    You just need to use a conditional on your loop, something like that:

    
    $date = date( "U" , strtotime( get_sub_field('file_date')));
    $new = date("U") - 1538943104;
    if($date < $new) :
       [....]
    endif;