424,256 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,256 IT Pros & Developers. It's quick & easy.

modied now() with time zones

P: n/a
Hi All:

Im developing a web app to be used several time zones away from where the
server is located. I would therefore like to develop a function that
substitutes now() both for dates / times, takes into account the time
difference and whether or not summer summer is in force, as well as date
corrects when the server time and the "local time" is on different sides of
midnight (For example "2006-02-01 03:00:00" CET would be would "2006-01-31
20:00:00" EST during the summer).

The server is on Central European Time (CET) and the app will be used in a
area using Eastern Standard Time (EST), the latter being seven hours behind
when summer time is in force but only six behind during the winter.

So regardless of the time of the year I would like to be able to do things
like this with a function called "nowlocal()":


dim currenttime, current as string
currenttime = hour(nowlocal()) & ":" & Minute(nowlocal())

currentdate = Day(nowlocal()) & "/" & Month(nowlocal()) & "/"

etc, etc

Any suggestions will be highly appreciated.


Apr 4 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.