public String getBackupFilename(String strFilenameTemplate)
    {
        Date now = new Date();
        String strDate = this.dateToString(now);
        for (int i = 0; i < strDate.length(); i++)
        {
            char ch = strDate.charAt(i);
            if (!Character.isLetterOrDigit(ch))
                strDate = strDate.substring(0, i) + '_' + strDate.substring(i + 1, strDate.length());
        }
        return MessageFormat.format(strFilenameTemplate, strDate);
    }
public String getBackupFilename ( String strFilenameTemplate ) { Date now = new Date ( ) ; String strDate = this . dateToString ( now ) ; for ( int i = 0 ; i < strDate . length ( ) ; i ++ ) { char ch = strDate . charAt ( i ) ; if ( ! Character . isLetterOrDigit ( ch ) ) strDate = strDate . substring ( 0 , i ) + '_' + strDate . substring ( i + 1 , strDate . length ( ) ) ; } return MessageFormat . format ( strFilenameTemplate , strDate ) ; }
/*
Add the files to the backup file