simple-vue2-datetimepicker
a vue.js component for selecting dates/times
1,102
3
| Install | |
|---|---|
npm install simple-vue2-datetimepicker |
|
| Latest Version: | 2.3.1 |
| Vue: | 2 |
| Last Updated: | Dec 9, 2022 |
| Links: | GitHub · npm |
Maintainer: jamespjarvis
SIMPLE VUE 2 DATE TIME PICKER
Vue.js component for easy date and time picking.

Installation
# npm
npm i simple-vue2-datetimepicker
# yarn
yarn add simple-vue2-datetimepicker
# unpkg
https://unpkg.com/simple-vue2-datetimepicker
Usage
Component
<template>
<div id="app">
<DateTimePicker v-model="myDate" :options="options"></DateTimePicker>
</div>
</template>
<script>
import DateTimePicker from "simple-vue2-datetimepicker";
export default {
name: "App",
components: {
DateTimePicker
},
data() {
return {
myDate: new Date(),
options: {
// defaults
timeFormat: {
locale: "en-US",
weekday: "short",
year: "numeric",
month: "short",
day: "numeric",
hour: "numeric",
minute: "numeric",
hour12: true
},
display: {
maxWidth: 400
}
}
};
}
};
</script>
Global
import DateTimePicker from "simple-vue2-datetimepicker";
Vue.component('datetimepicker', DateTimePicker);
Plugin
import DateTimePicker from "simple-vue2-datetimepicker";
Vue.use(DateTimePicker);
Development
- clone this repository
- install dependencies
- start the webpack development server with
yarn serveornpm run serve - go to
http://localhost:8080in your browser
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.3.1 | ^2.6.10 | ||
| 2.3.0 | ^2.6.10 | ||
| 2.2.9 | ^2.6.10 | ||
| 2.2.7 | ^2.6.10 | ||
| 2.2.6 | ^2.6.10 | ||
| 2.2.5 | ^2.6.10 | ||
| 2.2.4 | ^2.6.10 | ||
| 2.2.3 | ^2.6.10 | ||
| 2.2.2 | ^2.6.10 | ||
| 2.2.1 | ^2.6.10 | ||
| 2.2.0 | ^2.6.10 | ||
| 2.1.1 | ^2.6.10 | ||
| 2.1.0 | ^2.6.10 | ||
| 2.0.0 | ^2.6.8 | ||
| 0.7.0 | ^2.5.17 | ||
| 0.6.4 | ^2.5.17 | ||
| 0.6.3 | ^2.5.17 | ||
| 0.6.2 | ^2.5.17 | ||
| 0.6.1 | ^2.5.17 | ||
| 0.6.0 | ^2.5.17 | ||
| 0.5.0 | ^2.5.17 | ||
| 0.4.0 | MIT | ||
| 0.3.0 | MIT | ||
| 0.2.0 | MIT | ||
| 0.1.0 | MIT |