@Test public void shouldGetStringReceivedDate() throws Exception { OrderPOD orderPod = new OrderPOD(); orderPod.setReceivedDate(DateUtils.parseDate("01-09-12 05:30:00", new String[]{"dd-MM-yy HH:mm:ss"})); assertThat(orderPod.getStringReceivedDate(), is("2012-09-01")); }
@JsonIgnore public String getStringReceivedDate() throws ParseException { if (this.receivedDate == null) return null; return forPattern("yyyy-MM-dd").print(new DateTime(this.receivedDate)); }
OrderPOD extends BaseModel { @JsonIgnore public String getStringReceivedDate() throws ParseException { if (this.receivedDate == null) return null; return forPattern("yyyy-MM-dd").print(new DateTime(this.receivedDate)); } }
OrderPOD extends BaseModel { @JsonIgnore public String getStringReceivedDate() throws ParseException { if (this.receivedDate == null) return null; return forPattern("yyyy-MM-dd").print(new DateTime(this.receivedDate)); } OrderPOD(Long id);  OrderPOD(Long orderId, String orderNumber, Long userId); }
OrderPOD extends BaseModel { @JsonIgnore public String getStringReceivedDate() throws ParseException { if (this.receivedDate == null) return null; return forPattern("yyyy-MM-dd").print(new DateTime(this.receivedDate)); } OrderPOD(Long id);  OrderPOD(Long orderId, String orderNumber, Long userId); void validate(); void fillPOD(Rnr requisition); void fillPODLineItems(List<? extends LineItem> lineItems); void copy(OrderPOD orderPOD); @JsonIgnore String getStringReceivedDate(); Date trimHoursFromDate(Date receivedDate); }
OrderPOD extends BaseModel { @JsonIgnore public String getStringReceivedDate() throws ParseException { if (this.receivedDate == null) return null; return forPattern("yyyy-MM-dd").print(new DateTime(this.receivedDate)); } OrderPOD(Long id);  OrderPOD(Long orderId, String orderNumber, Long userId); void validate(); void fillPOD(Rnr requisition); void fillPODLineItems(List<? extends LineItem> lineItems); void copy(OrderPOD orderPOD); @JsonIgnore String getStringReceivedDate(); Date trimHoursFromDate(Date receivedDate);  }