#683: Force the format option to be YYYY-MM-DD when using type="date"