Solved
Forum Discussion
AlexKaras
Champion Level 3
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.
simonaferrara
3 years agoFrequent Contributor
Thanks AlexKaras !
I've asked to the developer, to format the date on the basis of the browser locale, he uses the following javascript function:
const t = new Date();
const date = t.toLocaleString([], {
day: '2-digit',
month: '2-digit',
year: '2-digit',
});
I've tried to use the same within my test code, to get the datatime with the expected format, but the function doesn't return the expected result.
I've found that this function belongs to the "ECMAScript Internationalization API", that is not supported by Test Complete, so that's why it doesn't work as expected.
Probably I've no way to do an accurate check on the displayed date 😞
Related Content
- 4 years agoeitak