1 Reply Latest reply on Aug 29, 2008 2:11 AM by Newsgroup_User

    UTC date time conversion to local US date time

    FJFLEX
      public static function GetFormattedDateTimeFromUTC(date:String):String
      {
      if(date != null && date != '')
      {
      var dateObj:Date = new Date(Date.UTC(Number(date.substr(0,4)),Number(date.substr(5,2)) - 1,Number(date.substr(8,2)),Number(date.substr(11,2)),Number(date.substr(14,2)),Number(dat e.substr(17,2))));
      var formatter:DateFormatter = new DateFormatter();
      formatter.formatString = "MM/DD/YYYY JJ:NN:SS";
      return formatter.format(dateObj);
      }
      return '';
      }