sql server - sql datetime converted to specific day if between certain times -


i have string of datetime records. i'd make case condition or if statement reads datetime value , assigns specific day.

the day range 2:45pm next day @ 2:45pm. range considered 'next day'

ex. time of post 3:42 pm 11/12/2016, therefore read 11/13/2016. if post made @ 2:42 pm 11/12/2016, have read 11/12/2016.

so far don't believe convert(date, 'datetime') work due time range constraints.

thanks

use dateadd function add time date gets next day. 2:45pm you'll need add 9:15.


Comments

Popular posts from this blog

php - Autoloader issue not returning Class -

ruby - Prevent Custom Validation Error on Association -

c++ - Why am i getting wrong values when performing PE base relocation? -