revert date to timestamp