You can also have a look at Date::Manip. It's one my my favorite mods. Its ParseDate function can parse just about anything that looks like a date, then you can use its UnixDate function to create a string that MySQL will like. Has a ton of other useful date functions too.