title: How to deserialize date '2017-01-01T00:00:59.000UTC'
body: <p>Trying to deserialize date with specific pattern from json file.<br />
  Object which I want to receive from json file:</p>
  <pre class="lang-java prettyprint-override"><code>@Data
  public class MyClass {
    @DateTimeFormat(pattern = &quot;yyyy-MM-dd'T'HH:mm:ss.SSS'UTC'&quot;)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime date;
  }
  </code></pre>
  <p>Json file:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;date&quot; : &quot;2017-01-01T00:00:59.000UTC&quot;
  }
  </code></pre>
  <p>Code example how I want to receive it:</p>
  <pre class="lang-java prettyprint-override"><code>ObjectMapper mapper = new ObjectMapper();
  MyClass clazz = mapper.readValue(new File(&quot;MyFile.json&quot;), MyClass.class);
  </code></pre>
  <p>Actual result:</p>
  <pre><code>com.fasterxml.jackson.databind.exc.InvalidFormatException: 
  Cannot deserialize value of type `java.time.LocalDateTime` from String &quot;2017-01-01T00:00:59.000UTC&quot;:
  Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) 
  Text '2017-01-01T00:00:59.000UTC' could not be parsed, unparsed text found at index 23
  at [Source: (File); line: 2, column: 11] (through reference chain: com.example.MyClass[&quot;date&quot;])
  </code></pre>
  <p>How to deserialize current date pattern?</p>