I am trying to convert a datetime (createTime) field from its default 2012-10-06 02:29:37.243 format to am/pm so I use
convert(varchar, CreateTime, 100) as CreateTime
and get Oct 6 2012 4:29AM.
So far so good but in the same statement I want to subtract 4 hours and then display the field (GMT issues).
I have gone through some posts here but could not find anything that can do it in single statement.