我希望以24小时格式约会 [英] I want to date in 24hrs format

查看:83
本文介绍了我希望以24小时格式约会的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从[988_Details_VehicleTrip]中选择CONVERT(varchar,date_TripDate,113)





2015年5月14日



以上日期我想要24小时格式



我怎么能在sql server中做



我尝试过:



从[988_Details_VehicleTrip]中选择CONVERT(varchar,date_TripDate,113) />




2015年5月14日



以上日期我希望24小时格式



怎么办sql server

select CONVERT(varchar,date_TripDate, 113) from [988_Details_VehicleTrip]


14 May 2015

for the above date i want into 24hrs format

how can i do in sql server

What I have tried:

select CONVERT(varchar,date_TripDate, 113) from [988_Details_VehicleTrip]


14 May 2015

for the above date i want into 24hrs format

how can i do in sql server

推荐答案

你好,

如果您的列类型date_TripDate是 DatTime ,那么显然它会将日期返回为24格式。

Hello ,
If your column type of "date_TripDate" is DatTime then obviously it will return date as 24 format.
select CONVERT(varchar,getdate(), 113)as Date



将产生输出


will produce output

date
04 Aug 2016 15:21:31:220



谢谢


Thanks


这篇关于我希望以24小时格式约会的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆