trim datetime to use only HH:mm. : <p>I'm using datetime picker where I'm getting date in format like</p>

<pre><code>2017-02-07 10:05
</code></pre>

<p>how can I trim this to use only HH:mm. </p>

<p>p.s. I dont want to change date format on datetime picker initialization</p>
