Skip to content

Instantly share code, notes, and snippets.

@tikitikipoo
Created January 8, 2012 03:43
Show Gist options
  • Save tikitikipoo/1577086 to your computer and use it in GitHub Desktop.
Save tikitikipoo/1577086 to your computer and use it in GitHub Desktop.
RSSのpub_dateの値もstrtotimeで変換できるだね
$rss_pub_date = "Sat, 07 Jan 2012 05:00:51 -0800";
$mydate = date("Y/m/d", strtotime($rss_pub_date));
echo $mydate;
// 出力 2012/01/07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment