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

"period" is displayed in the date formate instead of slash.

$
0
0
Hi,
We are using Smart Gwt-4.1p (29th Oct 2014)
Browser: Google chrome 39.0.2171.95 m, IE8 and IE9

Our application is supporting multi languages.

We are using "DateChooser" control to select the date, User selected date will be displayed in MM/DD/YYYY and DD/MM/YYYY format. But in the case of "German" language period is displayed (DD.MM.YYYY). I want to display slash in all the languages.

Please share the information how to fix this issue.

Please find the sample code which i wrote:

public DateDisplayFormat getDateDisplayFormat(dateAndTimeFormat) {

if ("MM/dd/yyyy".equals(pattern)) {
return DateDisplayFormat.TOUSSHORTDATE;

} else if ("yyyy/MM/dd".equals(pattern)) {
return DateDisplayFormat.TOJAPANSHORTDATE;

} else if ("dd/MM/yyyy".equals(pattern)) {
return DateDisplayFormat.TOEUROPEANSHORTDATE;
}
}


DateItem dateField = dateField.setDateFormatter(getDateDisplayFormat());


Regards,


Viewing all articles
Browse latest Browse all 4756

Trending Articles