set date correctly