4 Replies Latest reply on Nov 25, 2015 2:42 AM by lukas8330

    How to enter time and date in a field in UTC format ?

    lukas8330

      Hi,

       

      just trying to enter in a field the current date and time in UTC. Once someone clicks onto that field the date and time pops up automatically. I used this code and format for the current local time :

       

      var f = this.getField("Today3");
      f.value = util.printd("mmddhhMM", new Date());
      

       

      The format mmddhhMM should stay like that..but I need the output in UTC and not local. I tried a couple of examples but did not get the final result.

       

      May someone help pls ?

       

      Thank you very much.

       

      Brgds.