我试图允许 月/日/年 或 M/d/YYYY .
或者这个模式:
02/04/1998
02/4/1998
2/04/1998
2/4/1998
最佳答案
似乎该问题已通过此问题解决 commit .您现在可以以 d!.M!.yyyy
格式定义日/月/年-日期.它允许日和月的可选前导零。看到这个 github-issue想要查询更多的信息。
从 V1.0 开始作为 NPM (angular-ui-bootstrap) 提供。
关于angular-ui-bootstrap - 角度 Bootstrap : How to Allow 2 different date format,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32832161/