You can now pass DateTime objects as parameters to the database. They will be converted to MySQL datetime strings YYYYMMDDHHMMSS