0 Replies Latest reply on Feb 12, 2007 3:27 PM by munkybot

    Date.toString()

    munkybot
      I can't seem to get the string representation of a Date instance...
      here's some JavaScript

      <script>
      var flexApp = FABridge.foo;
      var flexDate = flexApp.create("Date");
      flexDate.setMonth(1);
      flexDate.setFullYear(2007);
      flexDate.setDate(2);
      alert(flexDate.toString());
      </script>

      This just alerts '[object Object]'
      I've also tried

      alert(flexDate.toString().valueOf());

      but I get the same thing