|
-
Jun 12th, 2002, 12:17 AM
#1
Thread Starter
Frenzied Member
ASP VBScript Access Database
I have a access database on ASP VBScript.
The actual server is in england I am in the US.
I use a insert into SQL to add data to the database.
I have at the start of every page Set locale 1033
But when it saves in the datbase the date it turns around the Month and day. and when i download it it get mixed up.
What can i do to fix it.
Thanks
-
Jun 12th, 2002, 08:16 AM
#2
Thread Starter
Frenzied Member
Its a asp hosted porvider. i do not control the server. I use fhr FormatDateTime() Function. Here is the code.
VB Code:
SetLocale 1033
strsql = "Insert INTO Logged (AcountNum, Name, DateL, IP, RHost) Values (" & Session("AcountNum") & ", """ & Session("ComNme") & """, '" & FormatDateTime(Now, 2) & " " & FormatDateTime(Now, 4) & "', '" & Request.ServerVariables("REMOTE_ADDR") & "', """ & RHost & """)"
-
Jun 12th, 2002, 08:27 AM
#3
Not heard of that one before, might take a look at what that does this afternoon. In the past I've used :
format(now(), #ddmmyyyy#)
(been a while since I've played with that function so you might want to check that syntax a bit but that's the general idea that usually works).
-
Jun 12th, 2002, 08:40 AM
#4
Thread Starter
Frenzied Member
I am working with VBScript on ASP. there is no Format(Now, "M/D/YY") Function there. Only FormatDateTime()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|