removed example from generate dates function