Calculate order end date based on date and number of weeks ACF fields

You could consider working with unix timestamps (a numerical representation of a date and time that is the seconds elapsed since 00:00:00 1st January 1970). This makes the math easier since we would be working with plain numbers: // Convert pick up date to unix timestamp integer. $start_timestamp = strtotime( get_field( ‘pick_up_date’ ) . ‘ … Read more