title: How do I get javascript date object without time part
body: <p>My client and server are at different time-zones.I am trying to get <strong>datetime</strong> in <strong>javascript</strong> but moment function or method <code>toISOString()</code> gives me string output. Even when I recreate the date object it again goes to <strong>GMT time</strong>. So how can I get date object without timezone issue?</p>
  
  <p>Some lines from my code are as below. All return string and my <code>ngModel</code> is <strong>Date</strong> type.</p>
  
  <pre class="lang-java prettyprint-override"><code>this.Element.nativeElement.value = this.Element.nativeElement.value.toISOString();
  </code></pre>