get UNIX timestamp from date fields