Thanks Guys
if i can't change the timestamp in the Access database, then
i need some
code that displays the time/date but minus 7 hours.
Any idea how id do that?
I have this at the moment, but it takes 7 days off
<%=(ContentRS.Fields.Item("TimeStamp").Value)(-7)%>
Thanks
Andy
"Joe Makowiec" <makowiec@invalid.invalid> wrote in
message
news:Xns99408275BDBE7makowiecatnycapdotrE@216.104.212.96...
> On 30 May 2007 in macromedia.dreamweaver.appdev, Andy
wrote:
>
>> My hosting company's servers are 7 hourse behind UK
time.
>> Is there a way to get my Access Database to adjust
the time before
>> it inserts a TimeStamp?
>> I'm using now() at the moment for the default value
>>
>> If this can't be dont in the database, what ASP code
would i use to
>> display the correct date/time?
>
> Somebody more familiar with Access will have to comment,
but (as far as I
> know) a timestamp column takes the system time on insert
(and maybe
> update), and you can't change that.
>
> What you could do is adjust the time when you use the
values:
>
> adjustedTime = dateadd("h", 7, timeFromDatabase)
>
>
http://www.drdev.net/article05.asp
>
http://www.google.com/search?q=time+arithmetic+asp+vbscript
>
http://www.google.com/search?q=time+arithmetic+access
>
> --
> Joe Makowiec
>
http://makowiec.net/
> Email:
http://makowiec.net/contact.php