saves also the date in the h5 file