title: Momentjs : How to prevent "Invalid date"?
body: <p>I have the following code :</p>
  
  <pre><code>var fomattedDate = moment(myDate).format("L");
  </code></pre>
  
  <p>Sometimes <code>moment(myDate).format("L")</code> returns "Invalid date", I want to know if there is a way to prevent that and return an empty string instead.</p>