M
Mark
Hi,
i have an application which works with date.
The regional settings of the computer (XP prof. dutch version) are set to
French (Belgium).
Asp.net and Sql server take the short date format of the regional settings
(e.g. 2/08/2007 or 13/08/2007).
I checked both: that's ok.
When i try to insert a date in a datetime field in sql server which is e.g.
13/08/2007, i get the error:
"The conversion of a char data type to a datetime data type resulted in an
out-of-range datetime value."
This is the code:
comd.CommandText = "insert into mytable (datbegin,datend) values('" & dbeg &
"','" & dend & "')"
I checked just before inserting the values (with response.write) and they
are: 2/08/2007 and 13/08/2007.
Why doesn't sql server accept those values? They are conform the settings,
no?
Or maybe the Insert command transforms the format of tye date?
Thanks for help
Mark
i have an application which works with date.
The regional settings of the computer (XP prof. dutch version) are set to
French (Belgium).
Asp.net and Sql server take the short date format of the regional settings
(e.g. 2/08/2007 or 13/08/2007).
I checked both: that's ok.
When i try to insert a date in a datetime field in sql server which is e.g.
13/08/2007, i get the error:
"The conversion of a char data type to a datetime data type resulted in an
out-of-range datetime value."
This is the code:
comd.CommandText = "insert into mytable (datbegin,datend) values('" & dbeg &
"','" & dend & "')"
I checked just before inserting the values (with response.write) and they
are: 2/08/2007 and 13/08/2007.
Why doesn't sql server accept those values? They are conform the settings,
no?
Or maybe the Insert command transforms the format of tye date?
Thanks for help
Mark