Question : case problems

I am trying to do a simple case statement to split something between times, but it doesn't work, the second when is picking up way more than it should, it is picking up time stamps way past the timestamp listed.
1:
2:
3:
4:
(case 
			when (completeddttm > '13:29' and  completeddttm < '17:01') then '13:30-17'
			when (completeddttm > '17:01' or completeddttm <  '02:00') then '17-2'
			when (completeddttm > '02:00' and completeddttm < '08:00') then '2-8' end)

Answer : case problems

sorry I mean to replace all completeddttm with
1:
... cast(convert(varchar, completeddttm, 108) as datetime)...
Random Solutions  
 
programming4us programming4us