Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

DateItem with mask "dd/MM/yy"

$
0
0
I would like to use a DateItem in a form in order to enter dates in the format "dd/MM/yy". Hence the mask should look like this "__/__/__".

Entering and parsing dates in the format "dd/MM/yy" is working correctly.
However, the displayed mask offers 4 characters for the year ("__/__/____") and it should be only two characters.

I tried to use the methods DateUtil.setShortDisplayFormat() and DateUtil.setInputFormat to centrally set a default date format. It doesn't seem to have an impact on the DateItem mask.

I use SmartGWT Framework (v10.0p_2014-10-26/PowerEdition Deployment 2014-10-26).
I have attached a minimum sample.

Any guess what could be missing?

Attached Files
File Type: java BuiltInDS.java (2.4 KB)

Viewing all articles
Browse latest Browse all 4756