Hi All, need help in converting a string to required format which can be a string or date format as well
I have “19-MAY-2020” as a string and I want to convert either to date or string type which is 2020-05-19 when I use the below expression it is giving below error
Assign: String was not recognized as a valid DateTime
Expression:
DateTime=Date.ParseExact(“19-MAY-2020”, “yyyy-mm-dd”,CultureInfo.InvariantCulture)
ReqOutput: 2020-05-19 (String or Date)
3 posts - 3 participants