jQWidgets Forums

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • RangeSelector Date display. #50661

    JoopC
    Participant

    Hello,
    I think the Rangeselector works not like it should do.
    I must add +2 to display the day of today.

    Code:
    var d = new Date();
    $( “#rangeSelectorDate” ).jqxRangeSelector( { theme: ‘ui-overcast’,
    width: 640,
    height: 20,
    min: new Date( 2013, 0, 1 ),
    max: new Date( d.getFullYear(), d.getMonth(), d.getDay() + 2 ),
    labelsOnTicks: false,
    range: { from: new Date( d.getFullYear(), d.getMonth() – 2, d.getDay() + 2 ),
    to: new Date( d.getFullYear(), d.getMonth(), d.getDay() + 2 ) },
    majorTicksInterval: “month”,
    minorTicksInterval: “day”,
    labelsFormat: ‘MM’,
    markersFormat: ‘dd-MMM-yyyy’
    } );

    RangeSelector Date display. #50668

    Peter Stoev
    Keymaster

    Hi JoopC,

    getDay gets the day of the week. May be you are looking for getDate

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.