title: How to get the Date & Time format From Client Machine using angular 2 or javascript?
body: <pre><code>transform(value: any): any {
      var customdate = new DatePipe(navigator.language);
      value = customdate.transform(value,"dd-mm-yyyy");
      return value;
  }   
  </code></pre>
  
  <p>I need to get the date format of client's machine at the place of "dd-mm-yyyy".</p>