Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to i convert a date time feild to be able to compare times that fall over midnight

$
0
0

the current format of my date and time feilds (work date, start time & end time) is :2013-07-09 20:00:00.0

I need to return the time component as 24hr value (hh:mm)  for start end end time feilds. I THEN need to perform comparisons against the time value, e.g.

end time  > = break start time etc

the issue is that i cannot work out how to format the time so it recognises the calculation for each independant work date, i.e. calculation does not work when times fall over midnight 


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>