I would think this would depend on how the date is displayed/input. Is it simply a text field in which you type the (correctly formatted) date, a drop-down list, or some sort of graphic calendar display where you click on the desired date?
Software Testing (n): 1. The art of trying to increase your confidence in a piece of software by finding everything that is wrong with it.
User Steve Mathisen (firstname.lastname@example.org) posted:
Not unless you can get your hands on the old Y2K add-on. You could
consider parsing the date that you have collected, incrementing the date by
doing math on the "day" portion, re-assembling the components as a date and
then doing whatever you want with that new date. It is messy and will not
work at all times without considerable tweaking, but, it can be done.
From: "Matthew Davison" <Matthew.Davison@travelex.com>
Subject: [winrunner] Calendar
Date: Wed, 15 Aug 2001 12:40:51 +0100
Does anyone know the TSL required to make Winrunner take the default date on
a web site and add say 3 days? So if the date on the Website shows as
01/12/2001 I would like it to select the 04/12/2001.
Quality is the result of a carefully constructed cultural environment. It has to be the fabric of the organization, not part of the fabric.
The best way to do this is to use the get_time and time_str functions. The
get_time function will get the PC time as the number of seconds since Jan
1st 1970 and the time_str function will convert the number of seconds since
Jan 1st 1970 into a time string. So you could do something on these lines :
seconds = (get_time() + (86400*Number_of days); # Note 86400 is the no.
seconds in a day
new_date = time_str(seconds);
I'm not sure what the format is of the time_str function is - try it. If the
format is not what you want simply use string manipulation functions on the
output to get what you want.