removed dateObject function replaced with new Date(),toJSON() in controller save function