I\'m trying to do an INSERT into an already set DB in MS SQL Server, the DB server is in a shared hosting (godaddy).
And what i\'m trying to achieve is to store an a
I cant understand why you are converting a datetime into String ??
datetime.Text = DateTime.Now.ToString("yyyyMMddHHmmss");
if you have to insert datetime in your DB then just pass that datetime variable to insert command.
DateTime dt = new DateTime();
dt = DateTime.Now.Date;
When you will insert it to DB, DB will convert it to its appropriate datetime format. Just try it.