title: Convert date into sfdate for snowflake
body: <p>I'm having problems working with dates in Snowflake using Snowflake's Javascript.</p>
  <p>One select queries and gets a date.  It's declared in the source table as a date.
  I want to be able to add 1 day to this date, then insert that into a DATE field in another table.  However, I'm getting a bind error on this.  With help from another stackoverflow, I got the returned
  type and found it to be a string, and not an sfDate.</p>
  <p>How can I convert the returned string from a select into a date that I can work with?  A bonus question is how can I add one day to this value?</p>
  <p>Also tried to convert it to date with try_to_date as below:</p>
  <pre><code>                    var convertedRunningDate = Date(&quot;Sun Jul 29 2018 00:00:00 GMT-0700 (PDT)&quot;);
                      statement = snowflake.createStatement(
                          {
                              sqlText: &quot; insert into mytable(date_stamp)  values(try_to_date(?)) &quot;
                              ,binds: convertedRunningDate 
                          }
                      );
  </code></pre>
  <p>and without it:</p>
  <pre><code>                    var convertedRunningDate = Date(&quot;Sun Jul 29 2018 00:00:00 GMT-0700 (PDT)&quot;);
                      statement = snowflake.createStatement(
                          {
                              sqlText: &quot; insert into mytable(date_stamp)  values(?) &quot;
                              ,binds: convertedRunningDate 
                          }
                      );
  
  
  </code></pre>
  <p>and I get</p>
  <pre><code>Invalid binds argumentSun Jul 29 2018 00:00:00 GMT-0700 (PDT). Error: Unsupported type for binding argument 2undefined
  </code></pre>
  <p>in both cases</p>