Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/ra-ui-materialui/src/input/DateInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ import { useForkRef } from '@mui/material';
*
* @example
* // If you want to manipulate the value from the field to adjust its timezone, use the format prop
* <DateInput source="published_at" format={value => new Date(value).toISOString().split("T")[0} />
* <DateInput source="published_at" format={value => new Date(value).toISOString().split("T")[0]} />
* // The input will display the UTC day regardless of the browser timezone.
*
* @example
* // If you want the returned value to be a Date, you must pass a custom parse method
* to convert the form value (which is always a date string) back to a Date object.
* // to convert the form value (which is always a date string) back to a Date object.
* <DateInput source="published_at" parse={val => new Date(val)} />
*/
export const DateInput = (props: DateInputProps) => {
Expand Down
Loading