mengxiong10 / vue2-datepicker

A datepicker / datetimepicker component for Vue2
https://mengxiong10.github.io/vue2-datepicker/index.html
MIT License
1.52k stars 406 forks source link

Format Datetime after confirm on the calendar #45

Closed MJayJang closed 6 years ago

MJayJang commented 6 years ago

This code reads beginDateTimeValue as v-model and saves date data when I click confirm. But I'd like to format it to ISOString with specific timezone. What can I do?

<datepicker 
v-model="DateTimeValue"
type="datetime"
format="yyyy-MM-dd HH:mm:ss"
:time-picker-options="{start: '00:00', step: '00:30', end:'23:30'}" 
lang="en"
confirm>
</datepicker>
mengxiong10 commented 6 years ago

@MJayJang I don't understand what you mean. Maybe you can reference: https://github.com/mengxiong10/vue2-datepicker/issues/43

MJayJang commented 6 years ago

@mengxiong10 Thanks for helping!