Skip to main content
You are viewing Pre-Alpha documentation.
Vuetify0 Logo
Theme
Mode
Accessibility
Vuetify

Sign in

Sign in with your preferred provider to access your account.

useDate API

API reference for the useDate composable.

Functions

createDate

(options: DateOptions<Z>) => E

Creates a new date context.

createDateContext

(options: DateContextOptions<Z>) => ContextTrinity<E>

Creates a new date context trinity.

createDatePlugin

(options: DatePluginOptions<Z>) => any

Creates a new date plugin.

useDate

(namespace?: string) => E

Returns the current date context. Requires `createDatePlugin` to be installed with an adapter.

Options

adapter required

DateAdapter<Z>

Date adapter instance.

locale

string

Locale for formatting (defaults to useLocale's selected locale or 'en-US')

locales

Record<string, string>

Short locale codes mapped to full Intl locale strings (e.g., { en: 'en-US' })

Properties

adapter

DateAdapter<Z>

The date adapter instance

locale

ComputedRef<string>

Current locale (reactive, synced with useLocale if available)

Was this page helpful?

© 2016-1970 Vuetify, LLC
Ctrl+/