Hi Team,
Good Afternoon. Kindly suggest on below date convertions.
Input format :- 6/3/2021 9:06:13 AM and I need it in 2021-06-03 09:05;13.000000
Thank you.
Hi Team,
Good Afternoon. Kindly suggest on below date convertions.
Input format :- 6/3/2021 9:06:13 AM and I need it in 2021-06-03 09:05;13.000000
Thank you.
Know the answer? Post it. Somebody with the same question will find it here.

Hi,
Try this
You can format based on your requirement.
https://docs.microsoft.com/en-us/dotnet/standard/base-types/how-to-display-milliseconds-in-date-and-time-values

Sachin thanks once again for your response. I am getting error when I try to execute above code. I just took new windows application and included about code in a button click event. Getting String was recognized as valid datetime.Please suggest

Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Jun 7, 2021, 6:21 AM EDT