Calculate time between dates + times
add_filter(‘frm_validate_field_entry’, ‘calculate_time’, 11, 3); function calculate_time($errors, $field, $value){ if($field->id == 30){ //change 30 to the ID of the hidden or admin only field which will hold the calculation $start_date = date_create_from_format( ‘m/d/Y’, $_POST[‘item_meta’][23] ); // Change 23 to the ID…Continue reading