$event_startdate_raw = intval(get_field('start_date', false, false)) / 1000; $event_startdate = new DateTime(); $event_startdate->setTimestamp($event_startdate_raw) $event_startdate->setTimezone(new DateTimeZone(timezone_name_from_abbr('', get_option('gmt_offset') * 3600, 0))); $event_startdate_jMY = $event_startdate->format('j M Y');
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter