Hi
I have date variable
x = “Tue, 8 Dec 2020 09:59:46 -0600”
so when I use
Datetime.ParseExact(x, “ddd, dd MMM yyyy HH:mm:ss zzz”, nothing).ToString(“yyyyMMdd_HHmmss”)
But it fails when date is in single digit as error message shown in subject line.
Date can be both in single and double digit. So how this can be handled robustly
Thanks in advance
Srini84
(Srinivas Kadamati)
December 9, 2020, 2:38pm
2
Bharat_Sharma:
yyyyMMdd_HHmmss
@Bharat_Sharma
Check as below
Check below for your reference
Convert Date & Time Format Tutorial
Hope this helps you
Thanks
1 Like
system
(system)
Closed
December 12, 2020, 2:38pm
3
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.