eval javascript with a third party function
<p>I am using dateFormat() function from a 3rd party lib.</p>

<p>The idea is to use the function inside a javascript expression and call eval(javascript)</p>

<p>the javascript is</p>

<pre><code>var createDate = "11/20/2013 12:30";
dateFormat(createDate, "MM dd at hh:mm a");
</code></pre>

<p>this blows up saying dateFormat is not a function. How do I let eval know about dateFormat()?</p>

<p>the 3rd lib is included in the html page where this logic occurs (using GWT). </p>

<p>please don't offer advices to not use eval(). I have no choice here.</p>
