Changes timestamp from date to epoch