Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dateFormat设置为“YYYY-MM-DD”时显示异常 #24

Closed
hu-qi opened this issue Apr 2, 2020 · 1 comment · Fixed by #35
Closed

dateFormat设置为“YYYY-MM-DD”时显示异常 #24

hu-qi opened this issue Apr 2, 2020 · 1 comment · Fixed by #35
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@hu-qi
Copy link

hu-qi commented Apr 2, 2020

DatePicker 日期选择器使用时将dateFormat设置为“YYYY-MM-DD”,获取到的时间显示为YYYY-04-DD。也就是说只有月份显示正常。
复现步骤和demo就不写了,我这边只需将dateFormated = 'YYYY-MM-DD';就会出现

ng-devui@8.0.0
windows 10
chrome 80.0.3987.149(正式版本) (64 位)

image

解决方案 dataFormat设为 yyyy-MM-dd就正常了

@ZOUJIELynn
Copy link
Collaborator

先使用dateFormat为y/MM/dd ,组件库下个版本会修复API的描述

@ZOUJIELynn ZOUJIELynn reopened this Apr 3, 2020
@wangyaju wangyaju added the documentation Improvements or additions to documentation label Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants