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,
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,
Comment