title: angular js date input formatting
body: <p>I am trying to create a date input in an AngularJS app and have trouble formatting the date.  I have created a plnkr to illustrate my issue:<a href="http://plnkr.co/edit/LbQIPG?p=preview" rel="nofollow">http://plnkr.co/edit/LbQIPG?p=preview</a></p>
  
  <p>My issue is that regardless of the date format that I am receiving back from SQL Server (I put two sample dates in the plnkr 2013-07-11T00:00:00.000 and 2013-07-11), the Javascript Date object is applying a time zone code and affecting the display of my date in the input field by displaying 07/10/2013 instead of the correct date of 7/11/2013.  I just want the date that was actually returned from the database, I don't want the timezone to be applied at all, only the date is relevant to me, not time.  Do I need to create a custom directive to accurately display the date that I want by getting the ISO date time and then assigning that date string to my input? Or is there a better solution.  Here is a sample of the code I was thinking I might need to use to format my date in a directive:</p>
  
  <pre><code>var newDate =  $scope.dataBaseData.myDate.toISOString();
  newDate = new Date(newDate);
  $scope.dataBaseData.myDate= new Date((newDate.getUTCMonth() +1) + "/" +newDate.getUTCDate() + "/" + newDate.getUTCFullYear());
  </code></pre>