title: Dataweave 2.0 - Cannot coerce String to LocalDateTime
body: <p>I get a CSV file with data that I transform to application/java.</p>
  
  <p>One of the fields (Creation_Date) is a DateTime field that I get as String because the output field is a string type.</p>
  
  <p><strong>Input field:</strong> Creation_Date (<em>String</em>) - <strong>Example</strong>: 2019-03-02 07:00:00.000</p>
  
  <p><strong>Output field:</strong> CreatedDate (<em>String</em>) - <strong>Example</strong>: 2019-03-02 08:00:00.000</p>
  
  <p>I use that code in my Dataweave 2.0 transformation because I want to add one hour more to the input datetime:</p>
  
  <pre><code>CreatedDate: payload.Creation_date as LocalDateFormat {format: "yyyy-MM-dd HH:mm:ss+01:00"}
  </code></pre>
  
  <p>But it returns an error:</p>
  
  <pre><code> Cannot coerce a String to a Localdatetime, caused by CreatedDate
  </code></pre>