View Single Post
  #2  
Old 08-13-2006, 07:47 AM
zinedine zinedine is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
zinedine is on a distinguished road
Default

Use this code

$months = array('Jan'=>1,'Feb'=>2,'Mar'=>3,'Apr'=>4,'May'=>' 5', 'Jun'=>6,'Jul'=>7,'Aug'=>8,'Sep'=>9, 'Oct'=>10,'Nov'=>11,'Dec'=>12);$month_no = $months[$month_name];
As for your conversion. You can just try using the strtotime function. Followed by the date() function. Convert the time into unix timestamp using the strtotime function. Then change it into the format of your choice using the date() function.

Good luck -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - date reformatting
View Single Post
  #2  
Old 08-13-2006, 07:47 AM
zinedine zinedine is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
zinedine is on a distinguished road
Default

Use this code

$months = array('Jan'=>1,'Feb'=>2,'Mar'=>3,'Apr'=>4,'May'=>' 5', 'Jun'=>6,'Jul'=>7,'Aug'=>8,'Sep'=>9, 'Oct'=>10,'Nov'=>11,'Dec'=>12);$month_no = $months[$month_name];
As for your conversion. You can just try using the strtotime function. Followed by the date() function. Convert the time into unix timestamp using the strtotime function. Then change it into the format of your choice using the date() function.

Good luck -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote