Convert Time DataType into AM PM Format:

后端 未结 12 635
悲哀的现实
悲哀的现实 2020-12-23 16:02

I have one Table which has two fields such as \"StartTime\" and \"EndTime\". The DataType of the Two columns are Time.

So the Values of the Table looks like as follo

12条回答
  •  -上瘾入骨i
    2020-12-23 16:52

    Try this:

    select CONVERT(varchar(15),CAST('2014-05-28 16:07:54.647' AS TIME),100) as CreatedTime
    

提交回复
热议问题