public void setCreatedOn(String createdOn) { this.createdOn = createdOn; try { product.setCreatedOn(CustomDateFormatter.getDateTimeFromString(createdOn)); } catch (ParseException ex) { ex.printStackTrace(); product.setCreatedOn(null); } }
public void setCompatibilityTestDate(String compatibilityTestDate) { this.compatiblityTestDate = compatibilityTestDate; try { compatibilityTest.setCompatibilityTestDate( CustomDateFormatter.getDateTimeFromString(compatibilityTestDate)); } catch (ParseException ex) { ex.printStackTrace(); compatibilityTest.setCompatibilityTestDate(null); } }
public String getCompatibilityTestDate() { if (compatiblityTestDate != null) return compatiblityTestDate; if (compatibilityTest == null) return ""; return CustomDateFormatter.getDateTimeString(compatibilityTest.getCompatibilityTestDate()); }
public String getCreatedOn() { if (createdOn != null) return createdOn; if (getProduct() == null) return ""; return CustomDateFormatter.getDateTimeString(product.getCreatedOn()); }