My website receives some data from PayPal. PayPal provides a string to represent the date time
10:52:32 Jan 17, 2019 PST
As it's a string, I understand I can manually break this up by splitting by white space, comma and by colon. I can then create the DateTime
object based upon what has been split
Before I attempt this, my questions is, can this be done "automatically" by the Framework?
My effort suggests no
DateTime.Parse("10:52:32 Jan 17, 2019 PST"); //System.FormatException: 'The string was not recognized as a valid DateTime. There is an unknown word starting at index NN.'