Replies: 1 comment
-
You always get back the same type of object as you put in. You can easily convert between the types in your Not sure I fully understood your exact requirements, but this example accepts a import {toCalendarDate} from '@internationalized/date';
let onChange = (dateTime) => {
let dateOnly = toCalendarDate(dateTime);
// ...
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
We're using at our company the DatePicker, Calendar, and many more hooks of react-aria, but we're getting some limitations about how to handle this scenario.
We're using
granularity=day
and initialzing the default value withnow(getLocaltimezone())
but the we don't want to show this date, we want to "force" somehow the user to add a date and keeping it blank when submits.Shouldn't be an option to enable which kind of date we want on the onChange callback?
Beta Was this translation helpful? Give feedback.
All reactions