Formatting pubDate in PHP?

Is there a way to format pubDate in php? Or a simple way to convert pubDate to a php timestamp?

i assume you’re referring to pubDate used in xml feeds to create it i use:

$d = explode("-", $date); 
  $t = explode(":", $time);
  $pubdate = date("r", mktime($t[0], $t[1], $t[2], $d[1], $d[2], $d[0]));

to convert it back to a format I’d like i’d probably use:

$nice_date = date("Y-m-d H:i", strototime($pubDate));

$nice date would be something like 2005-10-02 20:04.

You of course could change the date parameters as you see fit.