/*
* Returns a date string in the users date format
*
* @param nlsServ instance of OANLSServices
* @param dateStr string in 'dd-mm-yyyy' format
*/
public static String stringToDateString(OANLSServices nlsServ, String dateStr) {
if (dateStr != null && !dateStr.equals(""))
{
Date date = null;
if (databaseDateFormat != null) {
try {
date = databaseDateFormat.parse(dateStr);
} catch (ParseException e) {
}
}
if (date != null)
return nlsServ.dateToString(date);
}
return null
* Returns a date string in the users date format
*
* @param nlsServ instance of OANLSServices
* @param dateStr string in 'dd-mm-yyyy' format
*/
public static String stringToDateString(OANLSServices nlsServ, String dateStr) {
if (dateStr != null && !dateStr.equals(""))
{
Date date = null;
if (databaseDateFormat != null) {
try {
date = databaseDateFormat.parse(dateStr);
} catch (ParseException e) {
}
}
if (date != null)
return nlsServ.dateToString(date);
}
return null
No comments:
Post a Comment