I’ve actually managed to find a solution to the first part of my question by creating new DateTime object and get_post_meta instead of get_scpt_formatted_meta. Posting in case it is of use to anyone else:
$startdate = new DateTime(get_post_meta($post->ID, 'event-start-date', TRUE));
Still looking for a solution for returning the value of the select instead of the ID.
Viewing 1 replies (of 1 total)
The topic ‘Returning date prior to 1970’ is closed to new replies.