Results 1 to 3 of 3

Thread: Saved datetime values in distinct format automatically

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    39
    Vote Rating
    0
      0  

    Default Answered: Saved datetime values in distinct format automatically

    Hello, I am developing a app and I using datepicker components.

    My problem is to save the value of the datetime in the database, is saved in format "Fri Apr 05 2013 00:00:00 GMT+0200 (Hora de verano romance)", but I want to save it in format "2013-04-21 12:12:00".

    Is there any way to do this automatically?

    Thank you!


    Now..
    fechaIncorrecta.png


    I want..
    fechaCorrecta.png

  2. You are using a writer on a store and syncing the store? It should send the same format as the dateFormat config in your model field.

  3. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    You are using a writer on a store and syncing the store? It should send the same format as the dateFormat config in your model field.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    39
    Vote Rating
    0
      0  

    Default

    Perfect, now works fine too

Tags for this Thread

Posting Permissions

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