Hi Jeff,
| Even though Utilities.ShortDateFormat is obsolete, is there some other reason I shouldn't use this? What replaced this? |
In TestComplete 7 and later, you can get the short date format specified in the computer's regional settings using the
aqEnvironment.GetLocaleInfo method:
But since your primary goal is to format a date, you can simply use the aqConvert.DateTimeToFormatStr method instead of checking the date format:
// Enter Patient DOB
var dt = aqDateTime.SetDateElements(1960, 10, 15);
textBox = patientGB.textDateOfBirth;
textBox.Keys(aqConvert.DateTimeToFormatStr(dt, "%x") + "[Tab]");