Results 1 to 3 of 3

Thread: Date unrecognized from Data Builder UI genered by Json format

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default Date unrecognized from Data Builder UI genered by Json format

    Hello,
    I have a problem when I generate model from json webservice. The field date are recognized like "string" and not "date" :/

    For example:
    [
    {
    "Id": 789425052305425613,
    "Nom": "qVy ",
    "Email": "mrTs INT BWfZQA ",
    "Password": "ecl zdxVqc ArmujC ",
    "Prenom": " ",
    "Administrateur": true,
    "Telephone": "+33 71845845",
    "DateCreation": "2009-09-28T09:24:28.163977973+02:00",
    "DateInactif": "2018-02-17T19:53:03.16397932+01:00",
    "DateDestruction": "2017-06-25T04:44:29.163980373+02:00",
    "TicketConnexionDate": "2010-05-27T12:25:26.163981471+02:00",
    "TicketConnexionNumero": ""
    }
    ]
    For my memory, ISO 8601 can use this format ?

  2. #2
    Ext Team Member
    Join Date
    Sep 2017
    Posts
    603
    Vote Rating
    -295
      -1  

    Default

    Thanks for your question. I sent this to a team member and we will get this resolved for you!

  3. #3
    Sencha Staff
    Join Date
    Sep 2017
    Posts
    124
    Vote Rating
    -98
      -1  

    Default

    Hi there,

    You can define the field in the store as follows:
    {
    name: 'someDate',
    type: 'date',
    dateFormat: 'm-d-Y g : i A'
    }


    and then put the following renderer on your grid column:
    renderer: Ext.util.Format.dateRenderer('m-d-Y g : i A')

    Regards,
    Pavan.
    Sencha Support.

Similar Threads

  1. Replies: 4
    Last Post: 23 Feb 2018, 12:50 PM
  2. Replies: 2
    Last Post: 18 Jun 2016, 9:27 PM
  3. Replies: 9
    Last Post: 21 Oct 2012, 8:50 PM
  4. Json date format
    By Black Moon in forum Ext: Discussion
    Replies: 1
    Last Post: 5 May 2012, 2:39 AM
  5. Date Format from JSON
    By ExtJSBeginner in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 8 Mar 2010, 11:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •