title: Date formatting issues with Knockout and syncing to breeze.js entityAspect modified
body: <p>Ok, so this is not a first, but I'm having a hard time getting a date.  ;-)</p>
  
  <p>I'm using Breeze, Knockout. Have a form where I wish to show short date.</p>
  
  <pre><code>&lt;input name="start" data-bind="value: start" class="date required" required="required" placeholder="mm/dd/yyyy" style=" width:142px"&gt; 
  </code></pre>
  
  <p>yields a long dateTime: Wed Aug 31 2011 20:00:00 GMT-0400 (Eastern Daylight Time).</p>
  
  <p>Creating a method to format the desired short date accomplishes the goal of creating a short date, but my modelContext is unaware of any change notifications. So my object won't notify the screen of changes. I can possibly kludge this by trying to notify the dataContext on click, etc, but I'm hoping to not have that lost during the conversion.</p>
  
  <pre><code>function positionInitializer(posit) {
  
      var shortDate = function (date) {
          return date &amp;&amp; moment.utc(date).isValid() ? moment.utc(date).format('L') : "";
      };
  
      posit.start = ko.observable(shortDate(posit.start()));
  }
  </code></pre>
  
  <p>Are there any decent examples on how to do this? </p>
  
  <p>I don't think I can convert when I make my call for the query b/c I am expanding the number of tables in my call &amp; you can't do both.</p>
  
  <pre><code>        var query = EntityQuery.from('Positions')
          .where('id', '==', id)
          .expand('Company, Projects')
          .orderBy(orderBy.positions);
  </code></pre>
  
  <p>Thought I'd see what the hive-mind thinks...</p>