php's imap_fetch_overview() date field format as MySQL timestamp -
php's imap_fetch_overview() date key date format this:
thu, 22 aug 2013 07:53:32 -0400
yikes. possible customize format of date? not seeing in docs assume not. need convert mysql's timestamp format.
you can't customize included php function/library without rewriting , recompiling source. class customized, or inherited , adjusted. in case, can simple strtotime()
of date/time. convert mysql datetime.
$array=imap_fetch_overview(); $unixtimestamp=strtotime($array['date']); echo date("y-m-d h:i:s", $unixtimestamp);
Comments
Post a Comment