title: Format a date string in javascript
body: <p>Hello every i have date field of type string with iso format like this:
  const date = "2017-06-10T16:08:00: i want somehow to edit the string in the following format like this: 10-06-2017 but i'm struggling in achieving this.
  I cut the substring after the "T" character</p>