removed dateObject function replaced with new Date(),toJSON() in controller save function
removed dateObject function replaced with new Date(),toJSON() in controller save function
added condition to check count date if its an instanceof Date() class refs item:293