[英]PrimeFaces wrong Date Format
I tried to make PrimeFaces (6.1.7) calendar input with format of "M/d/yy" but it gives me only one digit for month and one digit for day (I can't write manually 12/12/17, when I'm writing "1" it jumps to the next digit without giving an option to write 12). 我试图以“ M / d / yy”格式输入PrimeFaces(6.1.7)日历输入,但是它只给我一个月的数字和一个天的数字(我不能手动写出12/12/17,当我写的是“ 1”,它跳到了下一位,而没有写12的选项。
What can I do? 我能做什么? Is there a known bug in PrimeFaces? PrimeFaces中是否存在已知的错误?
(I know I can write MM/DD/YY but I need this format because I'm taking it from java method) (我知道我可以写MM / DD / YY,但是我需要这种格式,因为我是从java方法中获取的)
The code used is as follows: 使用的代码如下:
<p:calendar id="startDate" required="true" mask="true"
pattern="M/d/yy"></p:calendar>
I spoke with PrimeFaces about it. 我曾与PrimeFaces谈过此事。
They said that it's a bug that will be fix in next elite release (6.1.8) and the 6.2 Community edition 他们说,这是一个错误,它将在下一个elite版本(6.1.8)和6.2 Community版本中修复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.