-1👍
✅
here an working example of how you can use VuePersianDatetimePicker
using CDN
var app = new Vue({
el: '#app',
data: {
date: '1400/04/05'
},
components: {
DatePicker: VuePersianDatetimePicker
}
});
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/moment"></script>
<script src="https://cdn.jsdelivr.net/npm/moment-jalaali@0.7.4/build/moment-jalaali.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-persian-datetime-picker/dist/vue-persian-datetime-picker-browser.js"></script>
<div id="app">
<p>selected date is: {{ date }}</p>
<date-picker v-model="date"></date-picker>
</div>
Source:stackexchange.com