In order to handle the requirement for dates in mdy, dmy or just year formats, getValue accepts a named parameter that may take the values "dmy", "mdy", or "y" - default is "dmy".