Is there a built-in way to parse a date time string like "Wed Mar 06 22:38:53 PST 2013" into a DATETIME?
Here's the code I wrote that I had hoped would work, but it appears that ParseDateFormat doesn't work with times:
Is there a built-in way to do this in SilkTest 13? Is there just a bug in my code?
string sDate = "Wed Mar 06 22:38:53 PST 2013"
sDate = StrTran (sDate, " PST", "")
Print(ParseDateFormat(sDate, "ddd mmm dd hh:nn:ss yyyy", dtValue))
Print(FormatDateTime(dtValue, "yyyy-mm-dd hh:nn:ss"))
Otherwise I'll have to roll my own, but doing a bunch of GetField() calls isn't my idea of the best way to handle DATETIME strings.