Makes datagenerator work independently of date conventions