Home  >  Article  >  Web Front-end  >  iview date control, two-way binding date format method

iview date control, two-way binding date format method

亚连
亚连Original
2018-05-30 10:51:243565browse

Now I will share with you an iview date control and a method of two-way binding date format. It has a good reference value and I hope it will be helpful to everyone.

The date format after two-way binding is: 2017-07-03T16:00:00.000Z

The desired format is 2017-07-04

It took a long time to adjust , almost a day: Done in one sentence

@on-change=”addForm.Birthday=$event”

<Date-picker placeholder="选择日期" type="datetime" v-model="addForm.Birthday" :key="addForm.Birthday" format="yyyy-MM-dd" @on-change="addForm.Birthday=$event" >
    </Date-picker>

The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.

Related articles:

Detailed explanation of red-black tree insertion and Javascript implementation method example

js builds a binary tree to perform numerical array Detailed explanation of deduplication and optimization

Detailed explanation of Vue’s global introduction of bass.scss solution

The above is the detailed content of iview date control, two-way binding date format method. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn