and if you want to convert it to JSON, do that in the stockCountFactory.save function so that the rest of the app sees a Date()