2 doubts...(how to arrange the prodtable's dlv time according to night shift and day shift

1)we have a field in prodtable called dlv time i want to group these items based on day shift and night shift like from 6am-6pm dayshift and 6 pm -6 am night shift how to check that.

2)i am getting month to display all the items for the particular month in year in the date and under date like night shift and day shift for each date under month.

thanks.

if(prodTable.DlvTime>6pm && prodTable.dlvTime<6am)

{

//night shift

}

else

{

//dayshift

}