change data from datetime to timestamp