Fixin initilaisation of date