Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
565
my date is always being displayed one day behind
posted

I have an igGrid where one column is a date.  For some reason, the date displayed is always one day behind the date's value.

The column definition is:

    { headerText: "Settlement Date", key: "settlement_date", dataType: "date", format: "MM/dd/yyyy" }

I have the page displaying the JSON source data, which is:

    [{"settlement_date"=>"2013-04-17", ...

But yet the igGrid displays "04/16/2013" instead of 4/17.

If I change the dataType to "string", then it displays "2013-04-17".  So it appears to be Ignite's conversion to "date" that is screwing it up.  (This would be ok, except that I can't format it now.)

Can someone please clue me in on what's going on and how I can fix it?

 

Parents Reply Children