jQWidgets Forums

jQuery UI Widgets Forums Editors Calendar Calendar format doesn't work..

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Calendar format doesn't work.. #9592

    gertjan.dm
    Member

    Hello everyone,
    i’m trying to get the following dateformat: dd/mm/yyyy like ’17/10/2012′.
    However my code is like described in the documentation, it keeps giving the full notation like ‘Wed Oct 17 2012 01:01:01 GMT+0200’.

    $(“#startCalendar”).jqxCalendar({ width: ‘20%’, height: ‘180px’, titleFormat: ‘mm yyyy’ });

    $(‘#startCalendar’).bind(‘valuechanged’, function () {
    Console.log($(‘#startCalendar’).jqxCalendar(‘getDate’), $(‘#endCalendar’).jqxCalendar(‘getDate’));
    });

    Someone can help me with this?

    Greetings!
    Gertjan

    Calendar format doesn't work.. #9593

    Peter Stoev
    Keymaster

    Hi Gertjan,

    jqxCalendar uses the JavaScript Date object, not Strings. jqxCalendar also does not have built-in dates formatting. For more information about the JavaScript Date Object, please read here: http://www.w3schools.com/jsref/jsref_obj_date.asp

    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.