title: Convert the string of date and time (2018-04-13T20:00:00.0400) into date string (April 13, 2018) in Kotlin
body: <p>I want to convert the DateTime string like "2018-04-13T20:00:00.0400" into "April 13, 2018". I have used the code </p>
  
  <pre><code>val sdf = SimpleDateFormat("yyyy/mm/dd", Locale.getDefault())
  val startDate = sdf.parse(data.start_time)
  </code></pre>
  
  <p>but with this code, my app crashes. Any help regarding this</p>
  
  <p>Log is showing this </p>
  
  <pre><code>2018-10-11 16:44:56.948 20482-21021/? E/NowController: Failed to access data from EntryProvider. ExecutionException.
  java.util.concurrent.ExecutionException: com.google.android.apps.gsa.sidekick.main.h.n: Could not complete scheduled request to refresh entries. ClientErrorCode: 3
      at com.google.common.util.concurrent.d.eA(SourceFile:85)
      at com.google.common.util.concurrent.d.get(SourceFile:23)
      at com.google.common.util.concurrent.l.get(SourceFile:2)
      at com.google.android.apps.gsa.staticplugins.nowstream.b.a.be.cbB(SourceFile:49)
      at com.google.android.apps.gsa.staticplugins.nowstream.b.a.be.cbA(SourceFile:181)
      at com.google.android.apps.gsa.staticplugins.nowstream.b.a.bh.run(Unknown Source:2)
      at com.google.android.apps.gsa.shared.util.concurrent.at.run(SourceFile:4)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at com.google.android.apps.gsa.shared.util.concurrent.b.g.run(Unknown Source:4)
      at com.google.android.apps.gsa.shared.util.concurrent.b.aw.run(SourceFile:4)
      at com.google.android.apps.gsa.shared.util.concurrent.b.aw.run(SourceFile:4)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
      at java.lang.Thread.run(Thread.java:764)
      at com.google.android.apps.gsa.shared.util.concurrent.b.i.run(SourceFile:6)
   Caused by: com.google.android.apps.gsa.sidekick.main.h.n: Could not complete scheduled request to refresh entries. ClientErrorCode: 3
      at com.google.android.apps.gsa.staticplugins.nowstream.b.a.ar.az(Unknown Source:4)
      at com.google.common.util.concurrent.q.ap(SourceFile:7)
      at com.google.common.util.concurrent.p.run(SourceFile:32)
      at com.google.common.util.concurrent.bt.execute(SourceFile:3)
      at com.google.common.util.concurrent.d.b(SourceFile:275)
      at com.google.common.util.concurrent.d.addListener(SourceFile:135)
      at com.google.common.util.concurrent.p.b(SourceFile:3)
      at com.google.android.apps.gsa.shared.util.concurrent.h.a(SourceFile:16)
      at com.google.android.apps.gsa.shared.util.concurrent.h.a(SourceFile:13)
      at com.google.android.apps.gsa.staticplugins.nowstream.b.a.be.cbB(SourceFile:47)
  </code></pre>