Date Picker

A calendar where you can input dates.

Example

27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
Wed Nov 06 2024 00:00:09 GMT+0900 (日本標準時)
vue
<template>
 <DatePicker
  v-model="date"
  mode="date"
 />
 <div>{{ date }}</div>
</template>

<script setup lang="ts">
const date = ref(new Date());
</script>

Integration

27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
{
 "date": "2024-11-05T15:00:09.021Z"
}
  
vue
<template>
 <ViewState
  v-slot="example"
  src="state://date-picker"
  :data="{
   date: new Date(),
  }"
 >
  <DatePicker
   :state-src="example"
   state-path="date"
   mode="date"
  />
  <JsonView :data="example.data" />
 </ViewState>
</template>

See Also