user3259903
user3259903

Reputation: 41

How to get Datefield value in EXTJS in yyyymmdd format

I am using a datefield with y/m/d format. When I call getSubmitData() method on this datefield it returns me the date value like ‘14/05/16’. Is there any way to convert this value to ‘20140516’.If i give the format as ymd, it shows me the selected date in the datefield in 140516 format,which i want to be shown as 2014/05/16.Any help is highly appreciated.Thanks

Upvotes: 1

Views: 9175

Answers (1)

Saki
Saki

Reputation: 5856

Use submitFormat:'ymd' config option.

Upvotes: 1

Related Questions