Date start = row.getDate("CD_FROM_TIME1");
Date end = row.getDate("CD_TO_TIME1");
if (start != null && end != null)
{
hours.addRange(new DateRange(start, end));
}
start = row.getDate("CD_FROM_TIME2");
end = row.getDate("CD_TO_TIME2");
if (start != null && end != null)