P E N C I L
Login
DateTime parser
  1. String str = "1986-04-08 12:30";
    DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
    LocalDateTime dateTime = LocalDateTime.parse(str, formatter);
  2. ISO 8601:
    1. By default, jersey is using 8601
    2. Ex: "2018-08-28T16:54:28.878-04:00" or "2018-08-28T21:07:01.018Z" for UTC
    3. DateTime dt = new DateTime();
             dt = dt.withZone(DateTimeZone.UTC);
             // Joda date time
             DateTimeFormatter fmt = ISODateTimeFormat.dateTime();
             System.out.println(fmt.print(dt));
             // OnDeck custom serializer
             String s = dt.toString("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
             System.out.println(s);
    4.