I have a get text activity that retrieves a date from a certain field that looks like 20170909. The variable is stored as a generic value.
How can I convert this into a date? Ive tried variable.ToDateTime(“yyyy/mm/dd”)
I have a get text activity that retrieves a date from a certain field that looks like 20170909. The variable is stored as a generic value.
How can I convert this into a date? Ive tried variable.ToDateTime(“yyyy/mm/dd”)
Try this
DateTime.ParseExact(DateString,“yyyyMMdd”,CultureInfo.InvariantCulture)
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.