Or simply pass DateTime objects to PDO. As I remember, it will handle it correctly.