Hi,
I have to show system date in custom format
For example: 2009/Oct/06
I want to show date in above format. how to get this output .
i used the below format
But i struck how to apply that array format in this format?
Can any one help me how to get the custom format date using php.
Thanks in advance
Regards,
I have to show system date in custom format
For example: 2009/Oct/06
I want to show date in above format. how to get this output .
i used the below format
Code:
$months = array(1 => "Jan", 2 => "Feb", 3 => "Mar", 4 => "Apr", 5 => "May", 6 => "Jun", 7 => "Jul", 8 => "Aug", 9 => "Sep", 10 => "Oct", 11 => "Nov", 12 => "Dec");
$raw_date = date("Y/m/d");
list($year, $month, $day) = split('[/]', $raw_date);
$date = $year . "/" . $month . "/" . $day;
Can any one help me how to get the custom format date using php.
Thanks in advance
Regards,
Comment