el-date-picker值格式化
时间: 2023-10-08 14:05:29 浏览: 94
el-date-picker的值可以通过添加value-format属性来进行格式化。根据引用,可以使用"value-format='timestamp'"来将日期值格式化为时间戳。而根据引用,可以使用"value-format='yyyy-MM-dd'"来将日期值格式化为"年-月-日"的形式。此外,根据引用,el-date-picker还可以用于选择日期时间范围,通过设置type为"datetimerange"并添加start-placeholder和end-placeholder属性来指定开始和结束日期的占位符。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [element-ui date-picker日期格式化(三种方法)总结](https://blog.csdn.net/LONGLONGAGO_RU/article/details/90403113)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [Vue——DatePicker日期选择器进行日期格式化](https://blog.csdn.net/wx19900503/article/details/102785708)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文