()
| 809 | } |
| 810 | |
| 811 | getDisplayFormat() { |
| 812 | // If no displayFormat is set, use the deprecated getFormat() for backward compatibility |
| 813 | if (!this._displayFormat) { |
| 814 | return this.getFormat(); |
| 815 | } |
| 816 | |
| 817 | return this._isDisplayFormatPattern |
| 818 | ? DateFormat.getDateInstance({ |
| 819 | strictParsing: true, |
| 820 | pattern: this._displayFormat, |
| 821 | }) |
| 822 | : DateFormat.getDateInstance({ |
| 823 | strictParsing: true, |
| 824 | style: this._displayFormat, |
| 825 | }); |
| 826 | } |
| 827 | |
| 828 | getValueFormat() { |
| 829 | if (!this._valueFormat) { |
no test coverage detected