-- MRG-4, fixed code to update date fields