Package jodd.datetime.format

Examples of jodd.datetime.format.JdtFormat.convert()


  @Test
  public void testFormat() {
    JdtFormat format = new JdtFormat(new Iso8601JdtFormatter(), "YYYY+DD+MM");
    JDateTime jdt = new JDateTime(2002, 2, 22);
    assertEquals("2002+22+02", jdt.toString(format));
    assertEquals(format.convert(jdt), jdt.toString(format));
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.