Input : 12/16/2020
Output : 12 16 2020
Thanks.
Input : 12/16/2020
Output : 12 16 2020
Thanks.
got the answer using Convert.ToDateTime(date).ToString(“MM dd yyyy”)
Hi @Jelrey
U can try this way too
DateTime.ParseExact(input,“MM/dd/yyyy”, System.Globalization.CultureInfo.InvariantCulture).ToString(“MM dd yyyy”)
Regards
Nived N
Happy Automation
Assign: String was not recognized as a valid DateTime.
Can u check whether the input date is in format of MM/dd/yyyy?
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.