title: moment.js returns invalid Date for moment (String, string)
body: <p>Wants to compare the timestamp. Tried lots of ways but it is throwing an Invalid Date error. The variables <code>startDate /endDate/testDate</code> returns a same timestamp format in <code>'DD.MM.YYYY HH:MM:ss' i.e. '21.12.2021 08:29:00'</code></p>
  <pre><code>var startDate = cy.get('[data-placeholder=&quot;Select time range (from)&quot;]').invoke('val')
  var endDate = cy.get('[data-placeholder=&quot;Select time range (to)&quot;]').invoke('val')
  var testDate  = cy.get('td:nth-child(5)&gt;span').invoke('text')
  
  1. moment(startDate ,'DD.MM.YYYY HH:MM:ss' ).format('DD.MM.YYYY HH:MM:ss')  ///  returns Invalid Date 
  2.  moment(startDate ,'DD.MM.YYYY HH:MM:ss' ).format('DD.MM.YYYY HH:MM:ss').valueOf() ///  returns Invalid Date
  3. moment(startDate ,'DD.MM.YYYY HH:MM:ss' ).format()  ///  returns Invalid Date 
  4. moment(startDate ,'DD.MM.YYYY HH:MM:ss' ) ///  returns Invalid Date 
  </code></pre>
  <p>Also tried using isBetween() function. But for all the conditions it is throwing result as <code>false</code>.</p>
  <pre><code>       cy.log( moment(testDate , 'DD.MM.YYYY HH:MM:ss').isBetween(
              (moment(startDate,'DD.MM.YYYY HH:MM:ss')), (moment(endDate,'DD.MM.YYYY HH:MM:ss'))
              ) )
  </code></pre>
  <p>please correct me.</p>