jQuery UI Widgets Forums Grid Using date format in cell renderer

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Using date format in cell renderer #26717

    Hi,

    I have a set of records in an array or JSON having below attributes

    orderid , customername , orderdate, customercity.

    I am combining the values like customername , orderdate (customername _orderdate ) and showing in a grid having one column as below:

    CorderDetails

    custmer1 _Mon Aug 05 2013 13:43:39 GMT+0530 (India Standard Time)

    customer2 _Mon Aug 05 2013 13:43:39 GMT+0530 (India Sandard Time)

    ABBLTD _Mon Aug 05 2013 13:43:39 GMT+0530 (India Standard Time)

    I am using cellrenderer to achieve this.

    Now problem is that I wanted to convert orderdate in a format like mm/dd/yy.But the date is comming like Mon Aug 05 2013 13:43:39 GMT+0530 (India Standard Time)

    Is there any way to achieve this?

    Using date format in cell renderer #26721

    Dimitar
    Participant

    Hello pius.satpathy,

    Here is how your cellsrenderer function should look like to dormat the date in mm/dd/yy format:

    var cellsrrenderer = function (row, column, value) {
    var formattedValue = $.jqx.dataFormat.formatdate(value, "d")
    return formattedValue;
    };

    Best Regards,
    Dimitar

    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.