I have the Date as : YYYYMMDD is the format used .
How can I convert it to MM/dd/yyyy
I am using the following workflow:
I am getting the following error:

I have the Date as : YYYYMMDD is the format used .
How can I convert it to MM/dd/yyyy
I am using the following workflow:
Check this below code, @Rachita_Chauhan
DateTime.ParseExact(“20210201”,“yyyyMMdd”, System.Globalization.CultureInfo.InvariantCulture).ToString(“MM/dd/yyyy”)
Hope this may help you
Remove the double quotes from “yyyyMMdd” and re add it double quotes to this - yyyyMMdd. and do processDate.Trim @Rachita_Chauhan
Thanks a ton!! It had spaces, now it worked!!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.