jQWidgets Forums

jQuery UI Widgets Forums Editors DateTimeInput jqxdatetimeinput How to show only year and month

This topic contains 2 replies, has 2 voices, and was last updated by  a1309632272 5 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • a1309632272
    Participant

    Hello,
    I think when the date component is expanded, the view only has the choice of year and month, and does not show the view of day, how should I operate;The operation of initializing the format of the date ‘yyyyMM’ can only operate on the value of the date. I want to modify the component of jqxdatetimeinput with only the choice of year and month!


    admin
    Keymaster

    Hi a1309632272,

    The component always works with Date object i.e the format yyyyMM will still manipulate only a Date. May be you can use jqxInput with custom validation or
    jqxMaskedInput.

    Regards,
    Peter


    a1309632272
    Participant

    Hello!
    I am glad to receive your reply, I have implemented the function yesterday.
    Next, I will provide my solution, hoping to help those who are troubled by this function.
    example:
    $(“#jqxDateTimeInput”).jqxDateTimeInput(formatString:’yyyyMM’,views:[“”,”year”,”decade”]);

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

You must be logged in to reply to this topic.