Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EXT-JS date format for datefield on form submit

I am using EXT JS to build a form that allows for user input. One of the fields is a datefield, when the form is submitted I would like the value being sent over HTTP to be the "long" value (or milliseconds) representation of the date, instead of the normal: 'dd/mm/yyyy' format.

I've searched A LOT and cannot find any answers.

Thanks.

like image 208
El Guapo Avatar asked Dec 16 '22 19:12

El Guapo


1 Answers

You can configure the format of the datefield's submitted date value using its submitFormat config. Try:

submitFormat: 'U000'

like image 101
JohnnyHK Avatar answered Dec 18 '22 09:12

JohnnyHK