Skip to content

Instantly share code, notes, and snippets.

@nikolasd
Last active October 23, 2018 13:56
Show Gist options
  • Save nikolasd/1f8dc3b5e68c04254df887d1f974633c to your computer and use it in GitHub Desktop.
Save nikolasd/1f8dc3b5e68c04254df887d1f974633c to your computer and use it in GitHub Desktop.
Pylon Script - Convert String to DateTime
// Convert String to DateTime with ParseExact
docEntry.SetValue("OfficialDate", DateTime.ParseExact(Convert.ToString(listDic[0]["OfficialDate"]), "yyyy-MM-dd hh:mm:ss", System.Globalization.CultureInfo.InvariantCulture))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment