[antdv: DatePicker] `value` provides invalidate moment time. If you want set empty value,use `null`
Always encounter this problem
Normal use:
html:
<a-month-picker v-model="monthValue" :allowClear="false" type="month" placeholder="选择月"></a-month-picker>
data:
monthValue:moment().format('YYYY-MM')
Reason:
ant design vue datepicker needs the format of moment by default, so an error will be reported.
Solution: use following method to define the data:
monthValue: moment(new Date(), 'YYYY-MM')
Read More:
- R reads JSON data
- After IOS upgrade, the time control selected by the wheel will be invalid, uidatepicker
- Register global time filter in main.js in Vue
- “Invalid month” in SQL query
- Solution of error converting data type varchar to datetime in SQL Server
- The shell gets the current time of the system and formats it
- ‘Conversion failed when converting date and/or time from character string.DB-Lib error message 241,
- SQL-DataCamp-Analyzing Business Data in SQL
- Time, strftime and strptime in Python
- Abnormal reading after stm32f4 RTC time setting
- Error: property ‘TZ’ does not exist on type ‘type of moment’
- The time of the time database displayed by the front end is inconsistent
- Elasticsearch6. X invalid time range query bug
- BibTeX: How to cite a website
- Error: required request body is missing, @ requestbody annotation usage
- java.text.ParseException: Unparseable date: “2021-06-24“
- ParserError: Error tokenizing data. C error: EOF inside string starting at row 917
- Handling of expression not in group by key [value] reported by hive on October 12, 2020
- Jsonformat annotation solves the problem of time format in the front end of localdatetime
- When SAP receives the goods, the system prompts that it can only be recorded in the period 2009 / 09 and 2009 / 08 of company code 1101