title: Angular JS compare two Dates are equal or not
body: <p>I have used this angular code to compare two dates are equal or not.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;div class="batchPlannings"&gt;
    &lt;div ng-repeat="batchPlanning in batchPlannings"
      ng-animate="'animate'"&gt;
      &lt;div ng-switch="batchPlanning.status"&gt;
        &lt;div ng-switch-when="MAPPED" class="my-switch-animation"&gt;
          &lt;p&gt;start date: {{batchPlanning.startDate}}&lt;/p&gt;
          &lt;p&gt;placement date: {{placementDate}}&lt;/p&gt;
          &lt;div ng-if="batchPlanning.startDate === {{placementDate}}"
            class="my-switch-animation"&gt;
            &lt;a th:href="@{/placement}" class="list-group-item"
              sec:authorize="hasAnyRole('ROLE_SYSTEM_ADMIN', 'ROLE_CENTER_ADMIN')"&gt;Batch
              with batch code '{{batchPlanning.batchCode}}' is ready for
              placements&lt;/a&gt;
  
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here I wanna check test those two dates  or equal or not
  I am getting those dates perfect and fine and those are also equal but unable to make that condition as true.
  I checked it with == as well but no result.</p>
  
  <p>Any help or suggestion will be appreciated.</p>