Created
December 13, 2017 14:47
-
-
Save conrjac/c5322375530fff834ce1cc14cf297686 to your computer and use it in GitHub Desktop.
convert ISO8601 dates to SalesForce DateTime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public DateTime convertISO8601(string str) | |
{ | |
return (DateTime)json.deserialize('"' + str + '"', datetime.class); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment