The use of element-ui component el-date-picker encounters a TypeError: value.getTime is not a function problem

When using the el-date-picker component of element-ui, you need to get the time in string format, and the format is yyyy-MM-dd HH:mm:ss. The code you started to write is as follows: Problem: Solve (
insert image description here
mainly
insert image description here
proofreading The verification problem requires time in string format, so type: 'date' cannot be included in the verification rule, otherwise startTime will be treated as a time object during verification):
insert image description here

Guess you like

Origin blog.csdn.net/weixin_46319117/article/details/127583732