format dates from mongoose to html5 input dates