We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d03666 commit abd1bbaCopy full SHA for abd1bba
docs/examples/range.tsx
@@ -202,6 +202,17 @@ export default () => {
202
disabledDate={disabledDate}
203
/>
204
</div>
205
+ <div style={{ margin: '0 8px' }}>
206
+ <h3>Custom Format</h3>
207
+ <RangePicker<Moment>
208
+ {...sharedProps}
209
+ locale={zhCN}
210
+ picker="year"
211
+ format={(date, index) => {
212
+ return index === 0 ? date.format('YYYY') : date.format('YYYY-MM-DD');
213
+ }}
214
+ />
215
+ </div>
216
217
218
);
0 commit comments