![]() |
Future Date from Calendar - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Future Date from Calendar (/Thread-Future-Date-from-Calendar) |
Future Date from Calendar - SS001 - 05-27-2010 Hi, I have a problem in picking future date from calendar. If today's date is 30/31 then it should pick next month's date. Please have a look on the code below. Code: mydate = day(now) Thanks in advance RE: Future Date from Calendar - supputuri - 05-27-2010 HI SS001, Where you are checking the month? As you know, the number of days are dependent on the month. So first check the month and then work with date. Let me know if you need any more info. RE: Future Date from Calendar - basanth27 - 05-31-2010 The try is fine, but a simple search would have yielded you the results. Month & leap year are 2 things you may need to consider. |