Try to use DateTimeFormatterBuilder.