mrbusy
Technical User
- Dec 10, 2003
- 118
I would like to do some basic stuff with ASP but I'm not exactly sure the best way to get to what I want.
I have a common homepage for all users with links and other useful data on it. I would like to add timezones at the top of the page so people can quickly find out what the time is in LA or Boston at a glace. This page is served from our Exchange server running IIS.
I've done a little with ASP before, for example displaying the current date and time at the top of the page, but I don't actually manipulate that data. I almost managed get the effect I wanted by using
EST <%=hour(now)-5%>:<%=minute(now)%>
but unforuntaely this drops leading zeros so three minutes past four would be displayed 16:3, which isn't very good.
Can anyone tell me, is there any easy way for me to take the current server time, add or subtract a specific number of hours, then display it in a meaninful format?
Many thanks in advance.
I have a common homepage for all users with links and other useful data on it. I would like to add timezones at the top of the page so people can quickly find out what the time is in LA or Boston at a glace. This page is served from our Exchange server running IIS.
I've done a little with ASP before, for example displaying the current date and time at the top of the page, but I don't actually manipulate that data. I almost managed get the effect I wanted by using
EST <%=hour(now)-5%>:<%=minute(now)%>
but unforuntaely this drops leading zeros so three minutes past four would be displayed 16:3, which isn't very good.
Can anyone tell me, is there any easy way for me to take the current server time, add or subtract a specific number of hours, then display it in a meaninful format?
Many thanks in advance.