TIMESTAMP IN ADO.NET

JeffN

New Member
How do you insert the (timestamp) VALUES ('now()') in ADO.NET? I get a <BR><BR>Syntax error converting datetime from character string. <BR><BR>I'm thinking i need to use the Parameters.Add function, but what is the correct syntax?<BR><BR>thanksDateTime.Now is the .NET equivelent of the Now function.Do I have to use the Parameters.Add when I insert it? I'm getting a conversion error since it's a string insert.I'm not entirely sure what you're trying, but DateTime.Now.ToString() will convert the value from a Date/Time to a String value. What you need?
 
Back
Top