SQL Server中的DateTime
我在表中有一个列,显示last_updated_date
。当前,它在yyyy-mm-dd HH中:MM:SS
格式,我希望它以dd-mm-yyyy HH:MM:MM:SS
格式。
列的数据类型为DateTime
。
I have a column in table which is showing last_updated_date
. Currently it is in yyyy-mm-dd hh:mm:ss
format and I want it in dd-mm-yyyy hh:mm:ss
format.
Datatype of the column is datetime
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此代码为您提供不同格式的日期,
请参阅
https://www.mssqltips.com/sqlservertip/2655/format-sql-server-dates-with-format-function/
This code gets you date
For different formats please refer
https://www.mssqltips.com/sqlservertip/2655/format-sql-server-dates-with-format-function/