Date changing to US Format in Angular during Validation
<p>I am doing some validation in angular where date added by user has to be greater than some other date on form.</p>

<p>On dateChange on input:From, i call this method which check for validation but when i try to get the date entered, it get date in US version.</p>

<p>ex:
<code>var from = new Date(viewValue);</code></p>

<p>viewvalue is "08/04/2016" but <strong>from</strong> comes out as 'Thu Aug 04 2016 00:00:00 GMT+0100 (GMT Daylight Time)'</p>

<p>What can i do so that <strong>from</strong> comes out as April 8th ?</p>

<p>Thanks.</p>