jbackup/src/main/java/org/jbundle/jbackup/util/Util.java
public static Date stringToDate(String strDate)
	{
		Date dateLastBackup = null;
		if ((strDate != null) && (strDate.length() > 0))
		{
			try	{
				dateLastBackup = DateFormat.getInstance().parse(strDate);
			} catch (ParseException ex)	{
				dateLastBackup = null;
			}
		}
		return dateLastBackup;
    }
public static Date stringToDate(String strDate)
	{
		Date dateLastBackup = null;
		if ((strDate != null) && (strDate.length() > 0))
		{
			try	{
				dateLastBackup = DateFormat.getInstance().parse(strDate);
			} catch (ParseException ex)	{
				dateLastBackup = null;
			}
		}
		return dateLastBackup;
    }
/*
Convert this date string to a date object.
@param strDate the date to parse.
@return The date or null if unparseable.