❔ Date Formatting in C#
I have an incoming date of string as 202302220811
and would like to convert this to 02/22/23 08:11 AM.
What is the syntax for doing this. Convert.ToDate does not like the string....
2 Replies
You should be able to pass a custom parse string of your own hang on I'll check the documentation
Looks as though it's
Although in your case we'd also parse the hour & minute
Looks like it'd be
yyyyMMddHHmm
for youLooks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.