change date contest to datetime