Change datetime to timestamp.