asp.net c# format datetime 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()
Example 3: c# datetime format
string labelAttendanceTimestr = DateTime.Now.ToString("HH"+"mm");