useDate API
API reference for the useDate composable.
Functions
createDateContext
(options: DateContextOptions<Z>) => ContextTrinity<E>Creates a new date context trinity.
useDate
(namespace?: string) => EReturns the current date context. Requires `createDatePlugin` to be installed with an adapter.
Options
locales
Record<string, string>Short locale codes mapped to full Intl locale strings (e.g., { en: 'en-US' })