Reputation: 25
How to display day name with time for example Monday 10:10? for example Response.Write(?)
Monday 10:10
Response.Write(?)
Upvotes: 0
Views: 2464
Reputation: 8656
Try this
Response.Write(DateTime.Now.ToString("dddd HH:MM"););
Reputation: 22086
You can try this
Response.Write(DateTime.Now.ToString("dddd hh:mm tt"));
Upvotes: 6