Subversion Repositories SmartDukaan

Rev

Rev 5945 | Rev 6915 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5945 Rev 6903
Line 117... Line 117...
117
    	}
117
    	}
118
    	cd.add(Calendar.MONTH, addition);
118
    	cd.add(Calendar.MONTH, addition);
119
    	SimpleDateFormat dateformat = new SimpleDateFormat("dd/MM/yyyy");
119
    	SimpleDateFormat dateformat = new SimpleDateFormat("dd/MM/yyyy");
120
    	return dateformat.format(cd.getTime());
120
    	return dateformat.format(cd.getTime());
121
    }
121
    }
-
 
122
	
-
 
123
	public String getInsuranceExpiryDate(long timestamp, long insurer){
-
 
124
	    if(insurer == 0) {
-
 
125
	        return "N/A";
-
 
126
	    }
-
 
127
        Calendar cd = Calendar.getInstance();
-
 
128
        cd.setTimeInMillis(timestamp);
-
 
129
        int addition = 12;
-
 
130
        cd.add(Calendar.MONTH, addition);
-
 
131
        SimpleDateFormat dateformat = new SimpleDateFormat("dd/MM/yyyy");
-
 
132
        return dateformat.format(cd.getTime());
-
 
133
    }
122
}
134
}
123
135