If date is passed as json format

if(typeof(ann.start)!=typeof(new Date())) { ann.start = new Date(ann.start);
if(typeof(ann.end)!=typeof(new Date())) ann.end = new Date(ann.end);