Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

Displaying Time

12:17 am on Oct 27, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 21, 2006
posts: 54
votes: 0

How do I display the current time (just a timestamp, not dynamic) on a Web page using ASP.NET (with seconds)?

Example: 5:00:52

12:21 am on Oct 27, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
votes: 0

Will it display the server time and time zone, or the users time and time zone?

Does it need date as well, or just time?

Will it be 24-hour or 12-hour am/pm time?

2:02 pm on Oct 27, 2009 (gmt 0)


WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
votes: 3


DateTimeFormatInfo Class [msdn.microsoft.com]


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members