DateTime issue in SQL Server

后端 未结 5 877
我在风中等你
我在风中等你 2021-01-18 22:08

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

5条回答
  •  梦谈多话
    2021-01-18 22:32

    According to me,it would be as follow:

    datetime.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
    

提交回复
热议问题