How can vaadin DateField accept multiple date formats input

Hi All,

In my project I have a standard DateField format as “dd MMM yyyy”. I used setDateFormat(“dd MMM yyyy”) to se this format. But now users want to enter “MM/dd/yyyy”, “MM-dd-yyyy” and “MM dd yyyy” formats too, with the displayable date MUST still be “dd MMM yyyy”.

Right now when I enter “31/01/2016” in the DateField with setDateFormat(“dd MMM yyyy”) I am getting “date format not recognized” error.

My question is how can I make a datefield accept multiple date format inputs(not using the calendar picker).

Any help is much appreciated. Thanks for reading the post!!!

Raja Vontela