Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8717033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:13:18+00:00 2026-06-13T06:13:18+00:00

Extjs grid Model has, { name: ORDERDATE, type: ‘date’, dateFormat: ‘MS’ } and I

  • 0

Extjs grid Model has,

{
    name: "ORDERDATE",
    type: 'date',
    dateFormat: 'MS'
}

and I tried sync store that has above model,

then the date posted format is like this (Json Type),

ORDERDATE "\/Date(1346212800000)\/"

and I guess because of this format,

in Asp.net(C#) couldn’t get that value using DateTime? variable.

I tried to receive that data using DateTime? ORDERDATE, but it has Null value all the time.

So, I want to try to change the date post format as ‘m/d/y’, but I don’t know how to do this,

anybody know, please advice me.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:13:19+00:00Added an answer on June 13, 2026 at 6:13 am

    I was having the same problem. Using the convert config (docs) on my date field worked for me.

    So my model has something like:

    fields: [
        { name: 'SomeField', type: 'string'} 
        ...
        , { name: 'TimeStamp',
          type: 'date',
          //dateFormat: 'MS',          
          convert: function (value, record) {
            //Convert date type that .NET can bind to DateTime
            var date = new Date(parseInt(value.substr(6)));
            return Ext.Date.format(date, 'l, F d, Y g:i:s A'); //Full Date Time
          }
        }
    ]
    

    I believe in the future we can use the serialize config (docs) which converts the field before sending model to server. Sounds like it is only working in 4.1.2 and beyond.

    In that case, I believe this would work:

    fields: [
        { name: 'SomeField', type: 'string'} 
        ...
        , { name: 'TimeStamp',
          type: 'date',
          dateFormat: 'MS',          
          serialize: function (value, record) {
            //Convert date type that .NET can bind to DateTime
            var date = new Date(parseInt(value.substr(6)));
            return Ext.Date.format(date, 'l, F d, Y g:i:s A'); //Full Date Time
          }
        }
    ]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In EXTJS i will use a model and store for my grid. Now is
I am defining a grid which has a selModel . Each time the store
I created a grid using extjs library. First created a model: Ext.define('Option', { extend:
I have the following extjs code that createa 2 tabs and a grid. How
I have an EXTJS paging grid with checkbox selection model. I want to know
I have a grid panel with JSON store, if I give alert (myGrid.model.prototype.fields.keys), it
I want to read this XML with using a Ext.data.Model into a ExtJS Store:
I have created one editor grid panel using extjs in that grid panel by
I've just noticed that my extJS grid,which uses a CheckboxSelectionModel, actually shows two checkboxes
I am using a web-automation tool against a site that utilizes an ExtJS grid,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.