Date Picker

A calendar where you can input dates.

Example

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
31
1
2
3
4
5
6
7
8
9
10
11
Sun Dec 15 2024 20:09:40 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

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
31
1
2
3
4
5
6
7
8
9
10
11
{
 "date": "2024-12-15T11:09:40.015Z"
}
  
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