date format in asp.net c# code example
Example 1: csharp datetime string format
DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss")
Example 2: asp.net format datetime
@String.Format("{0:dd MMM yyyy HH:mm}", item.Date).ToString()
DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss")
@String.Format("{0:dd MMM yyyy HH:mm}", item.Date).ToString()