Forum Discussion

Raviavi's avatar
Raviavi
Occasional Contributor
3 years ago
Solved

How to get Date time format using test complete

Hi All

 

I need to get the date time format of the date present in AUT which is localized based on the language settings of systemLocale/Browser Language settings

 

is there any way that i can get the DateTime format using test complete

 

 

  • Hi,

     

    get the DateTime format using test complete

    Consider aqEnvironment.GetLocaleInfo()

     

7 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    get the DateTime format using test complete

    Consider aqEnvironment.GetLocaleInfo()

     

    • simonaferrara's avatar
      simonaferrara
      Frequent Contributor

      Hi AlexKaras and mattb , I've the same need of this post, and I'm trying your solution through the aqEnvironment.GetLocaleInfo method, but I'm not finding the way to get the time format of the browser, currently it is only returned the format of the operating system datetime (my UI adapts the datetime basing on the browsers language configuration). Can you help me to understand which parameters can I use within this method to get the time format of the browser?

       

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        simonaferrara :

        Hi,

         

        I think that you need to talk to your developers. My guess is that they used some internal logic and custom formatting which operating system is not aware of.

         

  • sonya_m's avatar
    sonya_m
    SmartBear Alumni (Retired)

    Thanks everyone!

     

    Raviavi were you able to solve this? Please do let us know