allows reverting format -> deprecatedFormat, plus I think this is a nicer place for the function.
getValue