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 --