start of getting dates