jQWidgets Forums

jQuery UI Widgets Forums Grid Display Date

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 5 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Display Date Posts
  • Display Date #107940

    pcasals
    Participant

    Hello,
    I’m retrieving forma Postgres DB, using C# & MVC, some fiels, being one a Datetime
    In the JSON I get a Date Object, Date(1580079600000) and it is displayed as a string object, /Date(1580079600000)/

    The Column is defined as:
    { text: ‘D.Inici’, datafield: ‘fecha_inicio’, hideable: true, hidden: false, cellsformat: ‘dd/MM/yyyy’, resizable: true, datatype: ‘date’, sortable: true, filterable: true, pinned: false },

    And the datafield, in the dataadapter’s source is defined this way.
    { name: ‘fecha_inicio’, map: ‘fecha_inicio>date’, type: ‘date’ },

    Can you see what is wrong?

    Thank you
    PS: I have tried both using the map attribute, and just defining { name: ‘fecha_inicio’, type: ‘date’ }, having no diferences.

    Display Date #107983

    Hristo
    Participant

    Hello pcasals,

    Could you clarify it?
    Is there any error message in the console?
    About the Date object, it should be as such an object or a string that will be mapped.
    Please, take a look at this example:
    http://jsfiddle.net/txhi/kh5kmudL/
    I would like to ask you how you parse this JSON object.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.