title: Why does my momentjs issameorafter() not functioning properly
body: <p>In my VueJS application I'm using momentjs to validate if the user selected date is today or a future date.</p>
  <p>Following is my custom validation rule.</p>
  <pre><code>const dateIsToday = (value) =&gt; {
      let todayDate = moment();
      let selectedDate = moment(value, &quot;DD-MM-YYYY&quot;);
      return moment(selectedDate).isSameOrAfter(todayDate);
  };
  </code></pre>
  <p>This rule works with older dates.</p>
  <p><strong>But even when user selects a today's date, it gives an error.</strong></p>
  <p>Instead I should be able to allow to select today's date.</p>