Skip to content

How do you convert a Date to a DateValue? #7804

Answered by devongovett
cmmartin asked this question in Q&A
Discussion options

You must be logged in to vote
import {fromDate} from "@internationalized/date";

fromDate(someDate, timeZone)

https://react-spectrum.adobe.com/internationalized/date/ZonedDateTime.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cmmartin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants