QTP – Read Day, Month & Year from date value
Note – ‘Date is taken in format : DD/MM/YY
print weekdayname(weekday(”05/11/12″)) ‘This line of code returns the DayName i.e., Friday
print monthname(month(”05/11/12″)) ‘This line of code returns the MonthName i.e., November
print year(”05/11/12″) ‘This line of code returns the Year i.e., 2012
Log in to answer.
Copyright © dBuggr.com - All Rights Reserved.