A
ad
I have a Table with a SmallDateTime field name OrderDate.
I want to insert a record into this table, I use the SQL below:
sSqlLogIns = "Insert Into hInfLog (OrderID, OrderDate) values ('{0}',{1})
";
sSqlLogIns = string.Format(sOrderID, DateTime.Now.ToString());
Was I use DateTime.Now.ToString() OK?
or I must I use ToShortDateString() or others?
I want to insert a record into this table, I use the SQL below:
sSqlLogIns = "Insert Into hInfLog (OrderID, OrderDate) values ('{0}',{1})
";
sSqlLogIns = string.Format(sOrderID, DateTime.Now.ToString());
Was I use DateTime.Now.ToString() OK?
or I must I use ToShortDateString() or others?