View Single Post
  #3  
Old 08-13-2006, 08:48 AM
bestguy bestguy is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bestguy is on a distinguished road
Default

I have got simper method

Code:
$NewDate = date("Y-m-d", strtotime($OldDate));
Now, I've never used strtotime with the timezone offset like you have there...so I'm not sure how it works. I'll test it when I get a second and see what I come up with.

Edit: Okay, after the 4 second exhaustive test, it appears to work... -- 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
  #3  
Old 08-13-2006, 08:48 AM
bestguy bestguy is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bestguy is on a distinguished road
Default

I have got simper method

Code:
$NewDate = date("Y-m-d", strtotime($OldDate));
Now, I've never used strtotime with the timezone offset like you have there...so I'm not sure how it works. I'll test it when I get a second and see what I come up with.

Edit: Okay, after the 4 second exhaustive test, it appears to work... -- 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