Converted “format” option to object with two functions to convert back and forth between a String and a Date.