Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
it displays the date – 1 (data in json march 2014 and in jqgrid it is displaying march 2011)
here is the snipped of the code

 { name: 'DateOfBirth', index: 'DateOfBirth', width: 100, align: 'center', formatter: 'date', srcformat: 'yyyy-mm-dd', newformat: 'm-d-y', edittype: 'text', editable: true, formoptions: { rowpos: 5, colpos: 1 },
                            editoptions:
{
    dataInit: function (el) {
        setTimeout(function () {
            $(el).datepicker();
        }, 200);
    }

can you please tell me how to fix this.
Posted
Updated 6-Jun-14 2:46am
v2
Comments
srikanth492 6-Jun-14 9:18am    
when iam giving formatter:'datetime' it displays this date 7/3/2010 12:00:00 AM...it is correct .. but i want 7/3/2010 this format...

1 solution

i solved my self .just change formates ..here ican put these two formates ...

srcformat: 'dd/mm/yyyy', newformat: 'MM-dd-yyyy'
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900