set proper date