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 6960113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:21:37+00:00 2026-05-27T15:21:37+00:00

I have a model and store that take in values from my form fields.

  • 0

I have a model and store that take in values from my form fields.
My form contains a textfield, selectfield, datepickerfield and radiofield.

I take the values from the form and update my model with them. When later I load the model into the form, the values reappear on all components EXCEPT the datepickerfield.

Im using a localstorage proxy. I checked the values in the database, the date shows in the following format : “2011-12-13T18:30:00.000Z”

I think this may be the problem. Maybe the datepickerfield doesnt know how to load the format. What should I do ??

Sasha

  • 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-05-27T15:21:38+00:00Added an answer on May 27, 2026 at 3:21 pm

    What you’re telling me is the ways to format the date, not how to do it…
    But the date still doesnt load & the format is wrong.
    No actually I found the answer, this is what you have to do :

    1. Your showForm controller (to load the date in the form)should look something like this :
      showForm : function (params) {

      //load the model necessary
      var model = BReimb.stores.ListStore.getAt(params.index);
      
      //load all fields except datepickerfield
      Ext.getCmp('formPane').load(model);
      Ext.getCmp('MainView').setActiveItem(1);
      
      //for datepicker field --> where the Ext.getCmp('date') is the id of my datepicker field in the form
      
      if(model.data.date != "")
          Ext.getCmp('date').setValue(new Date(model.data.date));
      
    2. To format the date, incase ur using an itemTpl it shud be :
      itemTpl : ‘{date:date(“d M Y”)}’

    Hope this helps someone 😀

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a master page that relies on a specific model coming from my
I have a number of models that store words as a string with each
Let's say I have a RESTful, hypertext-driven service that models an ice cream store.
i have an entity-model file (edmx) file which contains few tables and few stored
I have model Article it has field title with some text that may contain
i have two Activity in this i take pixels of image from one activity
I have a handful of view controllers that inherit from a subclass of UIViewController,
I have an App that I am trying to design the data model for.
What is the best approach to take when you are pulling model objects from
I have a nice little app on the app store that does pretty well

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.