Sajmon

Dates

May 5th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. public void initDate() {
  2.         date = new Date();
  3.         actualDate = dateFormat.format(date);
  4. }
  5.  
  6. if (!selectedMedicineExp.equals(origin.getExpiracia().toString())) {
  7.                     param = "expiracia = ? ";
  8.                     try {
  9.                         sqlDate = new Date(dateFormatter.parse(selectedMedicineExp).getTime());
  10.                         paramsMap.put(param, sqlDate);
  11.                     }
  12.                     catch (ParseException ex) {
  13.                         Logger.getLogger(LiekBean.class.getName()).log(Level.SEVERE, null, ex);
  14.                     }
  15.                 }
Advertisement
Add Comment
Please, Sign In to add comment