Query dates converted to unixtime