useDate API
API reference for the useDate composable.
Functions
createDateFallback
() => DateContext<Temporal.PlainDateTime>Creates a fallback date context for when useDate is called outside of a Vue component.
createDateContext
(options?: DateContextOptions<Z>) => ContextTrinity<E>Creates a new date context trinity.
useDate
(namespace?: string) => EReturns the current date context. When called inside a component with a provided date context (via plugin or provider), returns that context. Otherwise, returns a fallback context with Vuetify0DateAdapter.
Options
locales
Record<string, string>Short locale codes mapped to full Intl locale strings (e.g., { en: 'en-US' })
