title: javascript is reading coming null date as 1/1/1970
body: <p>I am using AngularJS calling a web API to store data, the problem is that JavaScript is reading <code>null</code> date as <code>1/1/1970</code> in input box.
  How to make input box empty when coming date is <code>null</code>?</p>
  
  <p>when reading data </p>
  
  <pre><code>&lt;div class="form-group has-error"&gt;
    &lt;label class="title_lable"&gt;Date Of Certificate:&lt;/label&gt;
    &lt;input type="date" class="form-control input-sm" ng-model="cdate"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>when displaying data in html table</p>
  
  <pre><code> &lt;tbody&gt;
     &lt;tr  ng-repeat="d in lifeSupportsdata" ng-click="showInEdit(d)"  ng-class="{selected:d=== selectedRow}"&gt;
       &lt;td&gt;{{d.Life}}&lt;/td&gt;
       &lt;td&gt;{{d.Date_Issue | date :  "dd/MM/yyyy" }}&lt;/td&gt;
        &lt;td&gt;{{d.Date_Expiry | date :  "dd/MM/yyyy" }}&lt;/td&gt;
  </code></pre>
  
  <p>Angular Controller </p>
  
  <pre><code>$scope.showInEdit = function (member) {
    console.log(member);
    $scope.selectedRow = member;
    $scope.syskey = member.Sys_Key;
    $scope.life = '' + member.Life_Key + '';
    $scope.cdate = new Date(member.Date_Issue);
    $scope.edate = new Date(member.Date_Expiry);
  </code></pre>
  
  <p>any help or idea, how to display empty input box instead <code>1/1/1970</code>.
  Thanks in advance</p>