0

I'm looking for a way to remove the date part of a datetime in SqlServer

So if I have something like

2012-09-29 12:45:00.0000000

I want to get

12:45:00.0000000

Any clue?

I did found a lot of examples to remove the time part of a date but not the other way around...

EDIT: As I said, this is different from other solutions found because the other ones only get the Date part and not the time part. Also, might make a difference, it has to by typed (time) as I also found solutions that convert to text based result

Georges Legros
  • 2,364
  • 2
  • 22
  • 41

0 Answers0