Converts xs:date xs:datetime to timestamp (also known as epoch) and back