What's the correct way to store a date?? - TechRepublic
General discussion
June 8, 2000 at 03:16 AM
webmaster

What’s the correct way to store a date??

by webmaster . Updated 26 years ago

I’m using a

to ask the user for a date. Like so…
” METHOD=”GET”>
Date:

Then i’m storing the date…
strIBUSKEY = “‘” & Trim(Request.QueryString(“ibuskey”)) & “‘, ”

When i attempt to write the above string into a record’s date-field i get an error that i’m trying to write a string of text into a date-field.
Now, i’m new to VBScript (which is what i’m using to write my ASP’s). So, obviously, i’m storing the date in an inappropriate variable type.

How should i be storing this date info?

webmaster@egoz.org

This discussion is locked

All Comments