how to configure how date is displayed in a DateField

Hello vaadiners

I have a DateField , and I would like to make it display the the dates in the ‘traditional’ “yyyy-MM-dd HH:mm:ss” format instead of its default format

How can I achieve it?

I know there is DateFormat and SimpleDateFormat to display java.util.Date -s as formated string
How can I do the same with DateField?

Is it possible at all?

Thanks in advance




after posting my question I just discovered the answer in the api docs :slight_smile:

maybe I was a bit tired that I missed this in the javadoc before…