Check the date is greater than 0001-01-01 in Moment.js
<p>I have a function which formats date using,</p>

<pre><code>export function FormatDate(date: string) {
if (date != null) {
    return moment.utc(date).format('DD MMM YYYY');
}
else
    return "";
}
</code></pre>

<p>But the issue is that null dates are received as "0001-01-01" (DateTime Min value). how can I check it with moment js?</p>

<p>Could not find a straight forward way to do it. Following code works, but it's ugly,</p>

<pre><code>new moment("0001-01-01").format("DD MMM YYYY") == moment.utc(date).format("DD MMM YYYY")
</code></pre>

<p>The "date" I receive is in "/Date(-62135596800000)/" format.</p>

<p>I tried, <code>moment.utc(date).isAfter("0001-01-01")</code> and it's not working as well, returns true.</p>

<p>What is the best way to check serialized date is not the minimum date?  </p>