SoFunction
Updated on 2025-04-11

iview date control, method of two-way binding date format

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

The desired format is 2017-07-04

After adjusting for a long time, almost a day: I got it done in one sentence

@on-change=”=$event”

<Date-picker placeholder="Select a date" type="datetime" v-model="" :key="" format="yyyy-MM-dd" @on-change="=$event" >
    </Date-picker> 

The above iView date control, the method of two-way binding date format is all the content I share with you. I hope you can give you a reference and I hope you can support me more.