Skip to content

Commit

Permalink
feat: add standard format to DateRangePickerField
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Seidel authored and spawnia committed Mar 14, 2024
1 parent d4d05fa commit ed0dda3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Fields/DateRangePickerField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ export function DateRangePickerField<
} = useController<TFieldValues, TName>(controller);
return (
<FieldWrapper controller={controller} formItem={formItem}>
<RangePicker format="DD.MM.YYYY" {...fieldProps} {...component} />
<RangePicker
format={['DD.MM.YYYY', 'DDMMYYYY']}
{...fieldProps}
{...component}
/>
</FieldWrapper>
);
}

0 comments on commit ed0dda3

Please sign in to comment.