joebickley
Programmer
Hi all
I am inserting a simple record into a SQL server table i can get this to work ok with the exception of the date field. The users type a date into a box on the form in uk format eg 28/02/02 (dd/mm/yy) when this inserts in to my SQL server database it is trying to put it in as an american date ie 28/02/02 (mm/dd/yy). This falls over as the format is incorerect. Both client and server use the UK date format. Below is the query it parses.
MM_tableValues - ' this is the string with the database table field names
MM_dbValues - ' this is the string with the valus picked up off the form
[tt]
SQLTEXT = "insert into manufdata (" & MM_tableValues & ", resultdate" & " values (" & MM_dbValues & ",'" & request.form("resdate" & "')"
[/tt]
I think i need to do something with the date but i cant figure out what
thanks
joe
I am inserting a simple record into a SQL server table i can get this to work ok with the exception of the date field. The users type a date into a box on the form in uk format eg 28/02/02 (dd/mm/yy) when this inserts in to my SQL server database it is trying to put it in as an american date ie 28/02/02 (mm/dd/yy). This falls over as the format is incorerect. Both client and server use the UK date format. Below is the query it parses.
MM_tableValues - ' this is the string with the database table field names
MM_dbValues - ' this is the string with the valus picked up off the form
[tt]
SQLTEXT = "insert into manufdata (" & MM_tableValues & ", resultdate" & " values (" & MM_dbValues & ",'" & request.form("resdate" & "')"
[/tt]
I think i need to do something with the date but i cant figure out what
thanks
joe