22 May 2013 12:44 AM #1
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?
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.
24 May 2013 4:22 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
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 @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
24 May 2013 4:25 AM #3