Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP11.0 - Date format is changed as text while executing the QTP script.
#2
Not Solved
Hi Automation Tester,

1. you should format and set the entire column for the time as a particular format like HH:MM or HH:MM:SS like that.
2. Always have the same format as of your system date and time format, you can change it from the Control panel and regional settings.

That being said, you can also add the time in the following way.
DateAdd(interval,number,date)
yyyy - Year
q - Quarter
m - Month
y - Day of year
d - Day
w - Weekday
ww - Week of year
h - Hour
n - Minute
s - Second

adding the time in the above manner will get you rid of the issues.
Reply


Messages In This Thread
RE: QTP11.0 - Date format is changed as text while executing the QTP script. - by Tarik Sheth - 05-30-2014, 01:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  error when executing an UFT automation script alexalloza 0 1,619 10-30-2018, 06:17 PM
Last Post: alexalloza
  swfwindow object name getting changed after each run saniya 1 1,782 10-10-2018, 09:02 PM
Last Post: TheGlovner
  How to append date to xls file using qtp datatable methods? yona34 1 1,744 05-04-2018, 08:56 PM
Last Post: Ankur
  Executing via create "RES"xx folder? nishitd 0 1,365 03-07-2018, 01:09 AM
Last Post: nishitd
  QTP not recognizing date calendar kQTPs 1 3,689 12-20-2017, 11:21 PM
Last Post: harikrishna

Forum Jump:


Users browsing this thread: 1 Guest(s)