title: Format time to new Date() format of JS
body: <p>I have a time, as string &quot;13:00:00&quot;. I need to convert it so that my date picker component gets the value in proper format because it accepts only a Date object like below:</p>
  <pre><code>&lt;DatePicker
    mode=&quot;time&quot;
    locale=&quot;en_GB&quot; // Use &quot;en_GB&quot; here
    date={new Date()}
  /&gt;
  </code></pre>
  <p>How to format the time string &quot;13:00:00&quot; or any other in the format HH:mm:ss, so that i can directly supply it to the date picker component.</p>