Blessed7777
asked on
Display different time zones on web page
Would someone please advise how to display a time for different timezones using <%Response.Write(System.Da teTime.Now )%>. It seems like it would be something really easy, yet I can find nothing online for this specific request.
<%Response.Write(System.DateTime.Now)%>
ASKER
This would work if I needed to pick up one user's time zonezone. But I actually need to display 4 different time zones on the page. We have employees in 4 different time zones sharing the app and working together in it. One for Central, one for mountain, one for pacific and one for eastern. Is there an insert for after .now that will give these values? Ie: something like <%Response.Write(System.Da teTime.Now .EDT)%> to represent eastern time.
Thank youfor your assistance with this
Thank youfor your assistance with this
There is no function which supports the format you are looking for. We have to calculate the time by adjusting UTC offset from UTC time.
Do you want to display the time as clock like
Central Mountain Pacific Eastern
xx:xx xx:xx xx:xx xx:xx
and keeps on refreshing every minute?
Do you want to display the time as clock like
Central Mountain Pacific Eastern
xx:xx xx:xx xx:xx xx:xx
and keeps on refreshing every minute?
ASKER
Hi GiftsonDJohn, yes that is exactly what i am looking to do. Any suggestions you have would be great.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Oh! Very cool :) I am going to followed this example and it worked like a charm. Thanks for your help with this. I'm increasing the points to 500 as you went the extra mile.
Open in new window