Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

String to Date Format

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>