c# - How do I parse a string into a DateTime, with a specific format? -
I have a source where the date comes in this string form:
sat 22 September 13: 15: 03 2018
Is there any simple way that I can parse date in C #? I have tried the date with time. (Try) Pars, but it does not seem to recognize this specific format ...
Works:
DateTimeDT = DateTime.PresEx ("Saturday 22 September 13:15:03 2018", "DDMMM HH: mm: SSYYAN", blank)
Comments
Post a Comment