I know that one can convert a string to a dateTime() object, but as far as I know the string needs to be in a particular form already e.g. “20121029”.
I have a string that looks exactly like this:
2012-10-29T08:45:00.000
…Push in the right direction anyone?
The output is typical from DateTime structure,
DateTime.parse("2012-10-29T08:45:00.000"), should solve the problem.To know more about Date and Time Fromat String see this