title: How to format in Kotlin date in string or timestamp to my preferred format?
body: <p>I'm getting date data from weather API in two versions. The first one is just string like this: <strong>2019-08-07 09:00:00</strong> and like this: <strong>1565209665</strong>. How do I change it to just the name of the day or day and month?
  For example Monday, August.</p>
  <p>I tried something like this in few configurations but it works only in full version. If I cat something then it throws an error:</p>
  <pre><code>    var date = list.get(position).dt_txt
      val formatter = DateTimeFormatterBuilder()
          .appendPattern(&quot;yyyy-MM-dd HH:mm:ss&quot;).toFormatter()
      formatter.parse(date)
  </code></pre>