title: How to compare a string to a date in postman test?
body: <p>Suppose a API request fetches a users id, email address and birthday. Sample API Request below:</p>
  <pre><code>GET: /v1/users HTTP/1.1
  Content-Type: application/json
  Authorization: bearer {access_token}
  </code></pre>
  <p>For the above request, the following is the response:</p>
  <pre><code>{
      &quot;content&quot;: [
          {
              &quot;id&quot;: 1,
              &quot;email&quot;: &quot;random@random.com&quot;,
              &quot;birthday&quot;: &quot;1990-01-01&quot;
          },
          {
              &quot;id&quot;: 40,
              &quot;email&quot;: &quot;random1@random1.com&quot;,
              &quot;birthday&quot;: &quot;1990-18-10&quot;
          }
  ],
      &quot;last&quot;: false,
      &quot;total_elements&quot;: 2,
      &quot;total_pages&quot;: 1,
      &quot;sort&quot;: null,
      &quot;first&quot;: true,
      &quot;number_of_elements&quot;: 2,
      &quot;size&quot;: 20,
      &quot;number&quot;: 0
  }
  </code></pre>
  <p>Now, what will be the test in postman to make sure that all the returned values under birthday node is greater than 1988-18-01?</p>
  <p>I have tried the following:</p>
  <pre><code>pm.test(&quot;Check birthday greater than 1988-18-01&quot;, () =&gt; {
      for (i = 0; i &lt; jsonData.content.length; i++) {
          var a = '1988-18-01'; 
          pm.expect(jsonData.content[i].birthday).to.be.above(a);
      }
  });
  </code></pre>
  <p>But postman says: &quot;Check birthday greater than 1988-18-01 | AssertionError: expected '1990-01-01' to be a number or a date&quot;.</p>