Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get custom formatted date from qtp
#4
Not Solved
Code:
GetDay = DatePart("d", TheDate)
   GetMonth = DatePart("m", TheDate)
   GetYear = DatePart("yyyy", TheDate)
   MyDate = month & "/" & day & "/" & year

try this...it will also help you.
Reply


Messages In This Thread
RE: How to get custom formatted date from qtp - by K Gaurav Varshney - 07-20-2012, 12:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to append date to xls file using qtp datatable methods? yona34 1 1,661 05-04-2018, 08:56 PM
Last Post: Ankur
  QTP not recognizing date calendar kQTPs 1 3,613 12-20-2017, 11:21 PM
Last Post: harikrishna
  QTP11.0 - Date format is changed as text while executing the QTP script. Automation Tester 1 4,124 05-30-2014, 01:25 PM
Last Post: Tarik Sheth
  How to set value to custom property ? Ranu 0 2,047 11-14-2013, 02:58 AM
Last Post: Ranu
  Custom CheckPoint rajrkodeep 0 3,960 09-06-2012, 11:19 PM
Last Post: rajrkodeep

Forum Jump:


Users browsing this thread: 1 Guest(s)