Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Time in database

Posted 23 Jun 2002 20:17:32
1
has voted
23 Jun 2002 20:17:32 Eddie Adamsociety posted:
I have my server in US but my site for Thailand. So when I got the data in my server is US time how can I display it in Thai time.

Please help!!

Replies

Replied 24 Jun 2002 00:37:47
24 Jun 2002 00:37:47 Owen Eastwick replied:
Either add or subtract the time difference, e.g.

This will add 6 hours:

<%
varUStime = Now()
varThaiTime = DateAdd("h", 6, varUStime)
%>

This will subtract 6 hours:

<%
varUStime = Now()
varThaiTime = DateAdd("h", -6, varUStime)
%>


Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 24 Jun 2002 07:51:47
24 Jun 2002 07:51:47 Eddie Adamsociety replied:
Where should I add the code to?

new to this
Replied 24 Jun 2002 12:11:41
24 Jun 2002 12:11:41 Owen Eastwick replied:
In the VBScript part of the page - it's very difficult for me to be specific, what are you trying to acheive?

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 24 Jun 2002 18:05:01
24 Jun 2002 18:05:01 Eddie Adamsociety replied:
I would like to set the way the the time data collectting on the access database.
Example: I set the default value of my time table to Now()+1 that will add one day to the date and put it in database

But hour tomake it add 13 hour ahead for Thailand Time

I don'tknow how to write it
Replied 24 Jun 2002 21:54:56
24 Jun 2002 21:54:56 Owen Eastwick replied:
Try making the default value of the database field:

DateAdd("h", 13, Now())

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 25 Jun 2002 23:17:20
25 Jun 2002 23:17:20 Eddie Adamsociety replied:
Thank you so much, Owen

It is working the way I wanted now



Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo

Reply to this topic