Problem.

Ive been able to create a UNIX timestamp against custom meta type ‘event’, and order those events using meta value and meta keys.

But I’ve not been able to convert the UNIX timestamp into a human friendly/readable date.

I’ve finally worked out how!

Solution

$postid = $wp_query->post->ID;
$start_date = get_post_meta($postid, '_cmb_event_date', true);
echo date( 'D jS M<b\r>G:ia', $start_date ); ?>

*/ $start_date has to come from the plugin. This should be changed to whatever command you have created in your plugin. Also ‘_cmb_event_date’ should be changed to whatever meta key you have given this data entry. */