change createDate to datetime type