Ask a Question

How to get Date time format using test complete

SOLVED
Raviavi
Occasional Contributor

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
AlexKaras
Community Hero

Re: How to get Date time format using test complete

Hi,

 

get the DateTime format using test complete

Consider aqEnvironment.GetLocaleInfo()

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

4 REPLIES 4
mattb
Staff

Re: How to get Date time format using test complete

Hello,

I would take advantage of the AQDateTime Object, there should be plenty of methods to help out.

https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqdatetime/methods.html 


AlexKaras
Community Hero

Re: How to get Date time format using test complete

Hi,

 

get the DateTime format using test complete

Consider aqEnvironment.GetLocaleInfo()

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

sonya_m
Community Manager

Re: How to get Date time format using test complete

Thanks everyone!

 

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


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Raviavi
Occasional Contributor

Re: How to get Date time format using test complete

@sonya_m  Yes this is resolved thanks

cancel
Showing results for 
Search instead for 
Did you mean: