Updated date and datetime type classes, had to set format property to static