开发者

SmartGWT - Display date in yyyy/MM/dd format

开发者 https://www.devze.com 2023-02-05 23:28 出处:网络
I want to have the possibility to display a date with the possibility to enter the date manually. For this I\'ve uset the attribute useTextField set to true like:

I want to have the possibility to display a date with the possibility to enter the date manually. For this I've uset the attribute useTextField set to true like:

setAttribute("useTextField", true);

Now I want the format of date to be yyyy/MM/dd.

I've tryed with

setAttribute("displayFormat ", "TOJAPANSHORTDATE");
setAttribute("inputFormat ", "YMD");

but nothing happen.

I need to use attributes. What attribute should I use? And with what value?

Pl开发者_如何学Pythonease, need help. Thanks you a lot.


You can try

.setDisplayFormat(DateDisplayFormat.TOJAPANSHORTDATE);
0

精彩评论

暂无评论...
验证码 换一张
取 消