Don
Don

Reputation: 25

Display Day name with time

How to display day name with time for example Monday 10:10? for example Response.Write(?)

Upvotes: 0

Views: 2464

Answers (2)

Developer
Developer

Reputation: 8656

Try this

Response.Write(DateTime.Now.ToString("dddd HH:MM"););

Upvotes: 0

Amit
Amit

Reputation: 22086

You can try this

Response.Write(DateTime.Now.ToString("dddd hh:mm tt"));

Upvotes: 6

Related Questions