Use the following code to create a basic inputEx DateField.
Set the formatDate to your localized date format ! Here is the french format :
The DateField returns a javascript Date object instance :
The setValue/getValue methods will parse/format the dates to the valueFormat option.