$has_my_meta = get_post_meta( $post->ID, 'StartDate,EndDate',true ); if( $has_my_meta ) $with_meta = $post->ID?>
To grab event start and end dates that are stored as custom fields, and then outputting the date with echo get_post_meta, but I'm not having a lot of luck formatting the date output. Dates are stored as YYYY-MM-DD. I'd like the dates to display as n/j/Y or even as M/j/Y. What am I missing?
Thanks in advance