fix ignored stuff, make date creation function