2 Replies Latest reply on Jan 10, 2018 7:17 PM by Steve Boyko

    Index was out of range

    Saken

      Hi,

      I used following in string builder to get current date without time, it works fine for me but for another users it gives message, see attachment,

      they login to the same af machine I work.

       

      Left("%Time%",10);

       

      Why it happens for another users, they have the same access permission and can see all other attributes?

       

      thanks,

      S

        • Re: Index was out of range
          rkoonce

          Hello Saken,

           

          Perhaps the date format is the issue? Or you and the other user(s) are looking at 2 different dates?

           

          12/31/2018

          1/10/2018

          1/1/2018

          01/01/2018

           

          Cheers!

          Richard

          • Re: Index was out of range
            Steve Boyko

            It depends on the Region and Language settings on their computer. The %TIME% environment variable is formatted differently depending on the logged in user.

            1856.clip_image001_1B04E94F.jpg

            I suggest using a different string in String Builder to format the time the way you want it to appear..

             

            Format(%TIME%,"HH:mm:ss");

             

            datetime.png

            2 of 2 people found this helpful