02-12-2010, 07:34 AM
I am trying to enter a date in the date field as '1 year + current date' . When I tried to use the below code, it is entering the in the date field as "Mydate" instead of the 'Current date+1 year. Can anyone please help me in resolving this issue. Thanks in advance for your help.
The current format in the date field is mm/dd/yyyy. I would like to change the format as mm.dd.yyyy after adding 1 year too.
Code:
Mydate=(DateAdd("YYYY",1,Now))
Code:
Browser("Browser").Page("Page").WebEdit("SearchWidget_1_1{actionFo_2").Set "Mydate"
The current format in the date field is mm/dd/yyyy. I would like to change the format as mm.dd.yyyy after adding 1 year too.