update datetime to timestamp