setting correct date