Change type from date to datetime