which i want to be converted to 10/23/2023 in date format.
I tried doing it. Convert.ToDateTime(Datetime.ParseExact(newstring,“dd-MM-yyyy hh:mm:ss”,System.Globalization.CultureInfo.InvariantCulture).ToString(“dd-MM-yyyy”))
but it returned 23/10/2023 00:00:00
I just want 10/23/2023