Convert String value Date to “MM/dd/yyyy” format
For Ex:
Input Date: “30/9/2024”
Expected Output: “9/30/2024”…
you can try this
DateTime.ParseExact("30/9/2024", "d/M/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString("MM/dd/yyyy")
Hi @Gaurav_Gore
DateTime.ParseExact("30/9/2024","d/M/yyyy", System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None).ToString("M/d/yyyy")
Regards
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.