<?
//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;
}
?>
Blogger templates
Blogger news
Blogroll
Archives
-
▼
2011
(212)
-
▼
July
(22)
- PHP Predefined variables
- For fixing jquery popups(light box, facebox) in a ...
- PHP switch statement
- Simple PHP Counter
- facebox not loading for content loaded from ajax/j...
- FREE PHP OPTION BR - ,
- Onkeypress Javascript Numeric and Decimal Validation
- PHP Development and website design services
- PHP include statement
- DateAdd
- Speed
- PHP History
- Step by step blog creation tutorials using PHP & M...
- some php related quick links
- Instruction separation in PHP
- Additional Costs
- Expressions in PHP
- Some Cool Date Function SafDate1V2 - SafDate5V2
- I was designed and programmed with a php website t...
- function with return in php
- Script Auto Reply SMS Gateway dengan PHP
- VBA databases connection
-
▼
July
(22)