title: How to use the current date/time in an API call?
body: <p>I have a test that makes an API call, and a required part of the body that I'm passing in is a timestamp. The whole test is working except for this last piece (if I manually set the date/time before each test execution the test succeeds). </p>
  
  <p>I have been trying to set a variable like this:  </p>
  
  <pre><code>const todaysDate = Cypress.moment().format('YYYY-MM-DDTHH:MM:SS-07:00');
  </code></pre>
  
  <p>but I cannot figure out how to use this in the API call. The API parameter is formatted as such: </p>
  
  <pre><code>"offDateTime": "YYYY-MM-DDTHH:MM:SS-07:00"
  </code></pre>
  
  <p>Can anyone help me out?</p>