I want to insert a datetime
value into a table(SQL Server) using the sql query below
insert into table1(approvaldate)values(18-06-12 10:34:09 AM);
But I get this Error msg. Incorrect syntax near '10'.
I tried it with the quotes
insert into table1(approvaldate)values('18-06-12 10:34:09 AM');
I get this error message Cannot convert varchar to datetime
Kindly help! Thanks.