fix datetime type bug.
YY fixed datetime bug