C# Date-Time Format

This is how to format the Date/Time with Date/Time and AM/PM in C#: 

$"{DateTime.Now:yyyy-MM-dd hh:mm:ss tt}

 

Add comment

Loading