File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/ra-ui-materialui/src/input Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ import { useForkRef } from '@mui/material';
43
43
*
44
44
* @example
45
45
* // If you want to manipulate the value from the field to adjust its timezone, use the format prop
46
- * <DateInput source="published_at" format={value => new Date(value).toISOString().split("T")[0} />
46
+ * <DateInput source="published_at" format={value => new Date(value).toISOString().split("T")[0] } />
47
47
* // The input will display the UTC day regardless of the browser timezone.
48
48
*
49
49
* @example
50
50
* // If you want the returned value to be a Date, you must pass a custom parse method
51
- * to convert the form value (which is always a date string) back to a Date object.
51
+ * // to convert the form value (which is always a date string) back to a Date object.
52
52
* <DateInput source="published_at" parse={val => new Date(val)} />
53
53
*/
54
54
export const DateInput = ( props : DateInputProps ) => {
You can’t perform that action at this time.
0 commit comments