$ 0 0 Are these fields notes date time fields or strings? doc.A_StartDate1 ( 0 ) doc.A_EndDate1 ( 0 ) You might be hitting an is