<?
//Pass 2007-01-22 as date and output as January 22, 2007
function SafDate1V2($date){
list($y,$m,$d) = explode("-",$date);
$mycooldate = date("F d, Y",mktime(0, 0, 0, $m, $d, $y));
return $mycooldate;
}
//Pass 2007-01-22 as date and output as Jan 22, 2007
function SafDate2V2($date){
list($y,$m,$d) = explode("-",$date);
$mycooldate = date("M d, Y",mktime(0, 0, 0, $m, $d, $y));
return $mycooldate;
}
//Pass 2007-01-22 as date and output as Jan 22, 07
function SafDate3V2($date){
list($y,$m,$d) = explode("-",$date);
$mycooldate = date("M d, y",mktime(0, 0, 0, $m, $d, $y));
return $mycooldate;
}
//Pass 2007-01-22 as date and output as Sunday Jan 22, 2007
function SafDate4V2($date){
list($y,$m,$d) = explode("-",$date);
$mycooldate = date("l M d, Y",mktime(0, 0, 0, $m, $d, $y));
return $mycooldate;
}
//Pass 2007-01-22 as date and output as Sun, Jan 22, 2007
function SafDate5V2($date){
list($y,$m,$d) = explode("-",$date);
$mycooldate = date("D, M d, Y",mktime(0, 0, 0, $m, $d, $y));
return $mycooldate;
}
?>
Some Cool Date Function SafDate1V2 - SafDate5V2
