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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -