Results 1 to 2 of 2

Thread: Noob Question: How to Override the default JSON date encoding

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Connecticut
    Posts
    1,003

    Default Noob Question: How to Override the default JSON date encoding

    I have to write dates to MSSQL and after searching the forum, it seems like the correct answer is: to Override the JSON.encodeDate function. I am clueless to where / how / what I have to do to override this. I am using Architect (if that makes a difference.) Can someone please guide me or show me an example?

    I have think the override has to look like this:
    Ext.JSON.encodeDate = function(d) {
    return '"' + Ext.Date.format(d, 'MS') + '"';
    }


    Thanks

    bruce

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Looks like you've found something that will work. I'm going to move this thread to the Architect forum so someone can show you the best place to put that.

Posting Permissions

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