title: date.toLocaleDateString is not a function
body: <p>Have simple function which returns an error:</p>
  
  <blockquote>
    <p>ERROR: date.toLocaleDateString is not a function</p>
  </blockquote>
  
  <pre><code>TypeError: date.toLocaleDateString is not a function
      at FormatTime (../Src/rootdialog.js:87:58)
  </code></pre>
  
  <p>Function definition:</p>
  
  <pre><code>function FormatTime(time, prefix = "") {
      var date = Date.parse(time);
      return ((typeof time != "undefined") ? prefix + date.toLocaleDateString()  : "");
  }
  </code></pre>
  
  <p>Function receives <code>Date</code> object as input however even explicit conversion to <code>Date</code> with <code>Date.parse()</code> does not help. Using Node.js 8.x. Any solution?</p>
  
  <blockquote>
    <p><strong>P.S.</strong> Issue was caused by <a href="https://github.com/Microsoft/BotBuilder/issues/3338" rel="noreferrer">BotBuilder architecture</a>.</p>
  </blockquote>