How to compare date in javascript in this format? : <p>How to compare today's date time with <code>2016-06-01T00:00:00Z</code> format in javascript ? </p>

<p>I get <code>2016-06-01T00:00:00Z</code> date format from backend. I want to check this with todays date, but not sure of how to check in that format.</p>

<p>I am extremely new to javascript.</p>
