-
13 Sep 2012 8:33 AM #1
date
date
How to get the current date and apply format to it?
-
13 Sep 2012 8:37 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 436
current date is just plain Javascript: new Date()
Format it with Ext.Date.formatMitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
13 Sep 2012 11:07 PM #3
Hi chandan.behura ,
Try the code given below:
For more information about different date format visit:Code:Ext.Date.format(new Date(),'d-m-Y');
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.Date
sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.


Reply With Quote