1. #1
    Sencha User
    Join Date
    Nov 2011
    Location
    Hong Kong
    Posts
    44
    Answers
    6
    Vote Rating
    0
    Winnie Lam is on a distinguished road

      0  

    Default Answered: How can I parse DateTime to Date?

    Answered: How can I parse DateTime to Date?


    Using .NET platform, return a list of DateTime in JSON format such as:

    Code:
    {"d":["\/Date(1328112000000)\/","\/Date(1328198400000)\/","\/Date(1328284800000)\/"...
    Got a model with field in date format and found a function from the net saying that it could parse the datetime to date, but seems not working. Can anyone help? Thanks a lot.
    Code:
    Ext.regModel('BookingDate', {    fields: [
            {name:'Date', type:'date', convert : toDateFromJSON }
        ]
    });
    Code:
    function toDateFromJSON(v, record) {  
             return Date.parseDate(v, "M$");
    }

  2. I solved it. Thanks

  3. #2
    Sencha User
    Join Date
    Nov 2011
    Location
    Hong Kong
    Posts
    44
    Answers
    6
    Vote Rating
    0
    Winnie Lam is on a distinguished road

      0  

    Default


    I solved it. Thanks

  4. #3
    Sencha User
    Join Date
    Aug 2011
    Location
    Mumbai, India
    Posts
    118
    Answers
    11
    Vote Rating
    3
    Sasha172 is on a distinguished road

      0  

    Default


    You should probably mention how you solved it & Also mark the question as solved

  5. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Answers
    4
    Vote Rating
    0
    izak18 is on a distinguished road

      0  

    Default


    Hi, please, could you tell us how do you resolve this?
    I have the same problem, and when I try to read my date field in .net I have this:


    Code:
    Thu May 03 2012 11:08:56 GMT-0500 (Hora est. Pacifico, Sudamerica)
    Thanks in advance.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar