diff --git a/src/renderers/Date.tsx b/src/renderers/Date.tsx index 7dafe209e..33c59b2a4 100644 --- a/src/renderers/Date.tsx +++ b/src/renderers/Date.tsx @@ -119,3 +119,13 @@ export class TimeFieldRenderer extends DateField { format: 'HH:mm' }; } +@Renderer({ + test: /(^|\/)month$/, + name: 'month-field' +}) +export class MonthFieldRenderer extends DateField { + static defaultProps: Partial = { + ...DateField.defaultProps, + format: 'MM' + }; +}