Guest_imported
New member
- Jan 1, 1970
- 0
I've got a database that users are supposed to edit online. One of the columns is formated as date/time. When I try to update it using:
<%
MyTempDate="07/25/2001" (actually read from a passed string)
Conn.Execute("Update MyTable Set UserDateField=" & MyTempDate)
%>
or
<%
Conn.Execute("Update MyTable Set UserDateField='" & MyTempDate"'"
%>
I get error messages. I assume that the problem is to format it somehow, but I don't know how. The MyTempDate is gathered from a query from the table, so it should be in its correct format.
Can anybody help me? I'm freaking out cause I've got a deadline comming up.
Thx
<%
MyTempDate="07/25/2001" (actually read from a passed string)
Conn.Execute("Update MyTable Set UserDateField=" & MyTempDate)
%>
or
<%
Conn.Execute("Update MyTable Set UserDateField='" & MyTempDate"'"
%>
I get error messages. I assume that the problem is to format it somehow, but I don't know how. The MyTempDate is gathered from a query from the table, so it should be in its correct format.
Can anybody help me? I'm freaking out cause I've got a deadline comming up.
Thx