get/set values correctly for dx date & datetime fields