How to realize the echo of DatePicker in elementUI and save it to the backend?

< H2 > question < / H2 >

the frontend uses the same Form, newly added data edited and added in a page of vue+elementUI, to successfully reach the backend. Because the data of the wrong type is returned from the backend API when modified, the time error will be sent to the backend after clicking Save during the modification time. The Date field of the backend cannot receive the value error. Is there a solution?

< H2 > Code < / H2 >

front end

<el-form-item label="" prop="startTime">
                <el-date-picker v-model="form.record.startTime" @change="setDate" type="date" value-format="yyyy-MM-dd" placeholder=""/>
            </el-form-item>
            <el-form-item label="" prop="endTime">
                <el-date-picker v-model="form.record.endTime" @change="setDate" type="date" value-format="yyyy-MM-dd" placeholder=""/>
            </el-form-item>

backend

    @NotNull
    private Date startTime;

    @NotNull
    private Date endTime;

I hope you Daniel can give me some ideas. Thank you very much. Thank you

Feb.28,2021

convert the time of the background callback and render it again. This.form.record.endTime = new Date (endTime * 1000); / / if the timestamp is 10 bits, you need to multiply by 1000, and if the timestamp is 13 bits, you do not need to multiply by 1000.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2bb04-4d153.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2bb04-4d153.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?