Date gen working