jQWidgets Forums

jQuery UI Widgets Forums Editors DateTimeInput format strings in jqxDateTimeInput

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 9 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • format strings in jqxDateTimeInput #74353

    dafaccount
    Participant

    Hi,

    there is an issue with the jqxDateTimeInput. In particular, certain format strings are displayed incorrectly.

    For an example, have a look at http://jsfiddle.net/qhU4H/27/. The format string is set to “dd-MM-yy”. However, when I click in the input field the year is changed from “15” to “2015”.

    Another example is the format string “dd-MMMM-yyyy”. When I click in the input field the month is changed from “July” to “07”.

    This issue is a major bug for our customers. Can your provide us a fix? Thanks.

    Best regards,
    dafaccount

    format strings in jqxDateTimeInput #74357

    Peter Stoev
    Keymaster

    Hi dafaccount,

    Yes, it is changed when you click because there is difference between the formatString which you see and the formatting in Edit mode. In edit mode, it is made to be easier for editing the Date. This is not a Bug, this is by Design.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    format strings in jqxDateTimeInput #74364

    dafaccount
    Participant

    Hi Peter,

    thanks for your quick reply. Can I change the formatting in edit mode (e.g., by a formatString)?

    I don’t see the benefit to change the year from “15” to “2015” when clicking in the input field.

    Can I disable the formatting in edit mode?

    Is there a workaround?

    Best regards,
    dafaccount

    format strings in jqxDateTimeInput #74371

    Peter Stoev
    Keymaster

    Hi dafaccount,

    No, it is not possible to change or disable it. It changes from “15” to “2015” because it’s easier for users to enter dates with 4 digits instead of 2. formatString is taken into account on blur, when the widget is not focused by the user.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.