You might want to use regulations.generator.layer.utils to convert these dates