# Date

Component name: <v-date>

Parse and display dates and times.

# Examples

# Parsing dates

# Displaying dates

# Formats

# Supported languages

Language ISO 639-1
Danish da
English en
German de
Polish pl
Russian ru
Romanian ro

# Specifying language

<script>
window.CLIENT = {
  locale: 'ru' // ISO 639-1 language code
}
</script>
1
2
3
4
5

# API

Name Type Description Default
date Date Specified date and time Current date/time
format String Display using specified localized/custom format LLL
relative Boolean Display relative time format. Overrides format false
calendar Boolean Display calendar time format. Overrides format false
date-only Boolean Never show time. Works with the calendar format only false
with-time Boolean Always show time. Works with the calendar format only false

# Scoped Slot

For managing state, we're exposing an object using Scoped slots (opens new window).

This object contains the following:

Name Type Description
moment Function Exposes the underlying moment.js (opens new window) library. Due to the size of this library, v-date provides a simple way to load on-demand.