C# Date-Time Format 29 July 2024 Dave-Stuart .NET 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}