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 - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -