updated datetime to date