Answers for "convert dateTime.ToString("O") to dd/mm/yyyy tt:mm:ss c#"

C#
1

c# date to string yyyy-mm-dd

var date_string = date.ToString("yyyy-MM-dd");
Posted by: Guest on October-29-2020
-1

DataType.DateTime.ToString("dd-mm-yyyy"))

DateTime dt = DateTime.ParseExact(yourObject.ToString(), "MM/dd/yyyy hh:mm:ss tt", CultureInfo.InvariantCulture);

string s = dt.ToString("dd/M/yyyy", CultureInfo.InvariantCulture);
Posted by: Guest on May-13-2021

Code answers related to "convert dateTime.ToString("O") to dd/mm/yyyy tt:mm:ss c#"

C# Answers by Framework

Browse Popular Code Answers by Language