- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$format = "j-M-y H:i:s";
$f4_raw = "Wed Jan 14 00:09:09 BDT 2009";
$f4_formatted = date($format, strtotime($f4_raw));
echo "Format 4: $f4_formatted";
//$date = DateTime::createFromFormat('i/M/Y', 'Tue/Feb/2013'); //import with the specified format...
//echo $date->format('Y-m-d');