jQWidgets Forums
jQuery UI Widgets › Forums › General Discussions › 2-digit year for jqxdatetimeinput
This topic contains 6 replies, has 4 voices, and was last updated by Hristo 5 years, 10 months ago.
-
Author
-
The previous version of our app allowed users to key in a 2-digit year where values between 00 and 25 were assigned to 2000 and values between 26 and 99 were assigned to 1900; these ranges and assignments were configurable. The new version of our app is using jqxdatetimeinput and users are complaining about the lack of 2-digit support because they feel it is inefficient and is resulting in bad data (e.g., if you forget to enter 4-digits, entering “18” gets translated to 1900).
Are there plans to support 2-digit year input?
Thanks
Hello pauld,
The jqxDateTimeInput has the property ‘formatString’, by which you can set a custom format for the date.
Here is an Example with 2-digits year format.However, when you focus the input, still the whole year will be displayed.
Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/Hi, Martin
Thanks for the response. We understand how the current functionality works, but our users find it quite inefficient to have to input a 4-digit year — and they have a hard time remembering this because most other apps (e.g. MS Outlook, Excel, etc.) understand 2-digits and automatically convert it to 4-digits. The results of keying in a 2-digit year lead to all kinds of data quality issues. E.g,. in your fiddle example, if you key “01/01/13”, the results are quite unexpected (from an end-user’s perspective) — it starts 01/01/1300 and then when it loses focus, it changes to 01/01/00 (01/01/1900) based on the “min” property. For users who do heads-down data entry, this is a big usability challenge
Is there a way to add support for 2-digit input currently? If not, is it on the roadmap?
Thanks!
Hi pauld,
I added a work item about this behavior. We see it indeed as a missing feature in our DateTimePicker. We will put it in the next roadmap period, too.
Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.comHi, Peter
Can we expect to see support for 2-digit year in an upcoming release? We’d like to be able to communicate at least a rough time frame to our clients.
Thanks
Any chance that we’ll see this in an upcoming 8.x release?
Thanks
Hello pauld,
Thank you for your interest.
We will discuss this with my colleagues.
Meanwhile, I would like to suggest you our new DateTimePicker which is included in the jQWidgets subscription: datetimepicker web component of the DateTimePicker component.
Also, you could find for useful itsyearCutoff
property.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.