Re: [PHP] HELP! Date formatting

2001-01-16 Thread Niel Zeeman
Thanx This should make live a bit easier :) - Original Message - From: "Niel Zeeman" <[EMAIL PROTECTED]> To: "php gen list" <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 7:46 AM Subject: [PHP] HELP! Date formatting Hi Ive gotto format a date such as 30/12/1956 to format 30-Dec

RE: [PHP] HELP! Date formatting

2001-01-16 Thread Maxim Maletsky
$date = 30/12/1956; $month = Array(1=>'Jan', 2=>'Feb', 12->'Dec'); // The array of month... function date_format($date) { Global $month; $date = explode('/', $date); // And it became to you an array... return $date[0].'-'.$month[$date[1]].'-'.$date[2]; } //will return 30-Dec-

RE: [PHP] HELP! Date formatting

2001-01-16 Thread Boget, Chris
> Ive gotto format a date such as 30/12/1956 to format 30-Dec-1956, > I can not use mktime cause that only provides the timestamp from 1970. > Is there any other method of getting this right. mktime() can be used for this. 0 is from 1970. Negative values are used for dates prior. Chris