Date Picker Less than 30 days
-
Evening All!
Need a little bit of advice!
I am using Date Picker as an ACF and on the front end I am trying to get it to calculate the date + 30 days with the result inputting a marker.
I have sort of tried below, however no success:
<?php // get raw date $date = get_field('acf_date_field_name'); if ($date < strtotime('-30 days')) { echo "30 days"; } else { echo "Its OK"; } ?>
Any help would be appreciated.
- The topic ‘Date Picker Less than 30 days’ is closed to new replies.