catch nil value for date attrbutes