Skip to content

Instantly share code, notes, and snippets.

@GreatPotato
Created February 4, 2015 15:11
Show Gist options
  • Save GreatPotato/61460869f5eb03f02444 to your computer and use it in GitHub Desktop.
Save GreatPotato/61460869f5eb03f02444 to your computer and use it in GitHub Desktop.
Convert PayPal Date/Time fields into MySQL DateTime
UPDATE transactions
SET DateTime = CAST(CONCAT(STR_TO_DATE(Date,'%d/%m/%Y'), ' ', Time) AS DateTime)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment