I have a column OFFSTARTIME
with a datetime
datatype. Currently data is appearing as
1900-01-01 08:00:00.000
I want to show only
08:00:00
For that I have tried the following query:
SUBSTRING(CAST(OFFSTARTIME AS VARCHAR(19)), 12, 19)
but it's showing an output of
0 8:00AM