title: Waterline (Sails.js). Rows with 'updatedAt' greater than a given value
body: <p>I want to get the <em>new</em> rows from a model. The rows that have been created after a given date. The query should be very easy:</p>
  
  <p>where <em>updatedAt</em> >= <em>givenDate</em></p>
  
  <p>But it's not working :(</p>
  
  <p>My code:</p>
  
  <pre><code>        // Date from client
      var lastDate = req.param("date");
  
      // Parse date with moment? I have tried with and without this.
      lastDate = moment(lastDate).format('YYYY-MM-DD hh:mm:ss');
  
      var query = Message.find().where({
          updatedAt: {
              '&gt;=':   lastDate
          }
      });
  
      query.exec(function(err, messages) {
          // I get ALL the messages, :(
          res.send(messages);
      });
  </code></pre>
  
  <p>Thanks in advance.</p>