hi i have one issue while coding the dates . i want to add
the date curret to 4 days . can any one helme plz about
this
regards
balaji
Answers were Sorted based on User's Feedback
Answer / kazi
Hi Bala,
this is coding---
public static void main(String args[]) throws Exception
{ SetTest st = new SetTest(); st.addDaysToDate
("28/04/2009", 4);} private void addDaysToDate(String date,
int daysToAdd) throws Exception { Date todayDate = new
Date(); DateFormat sdf = new SimpleDateFormat
("dd/MM/yyyy"); String strDate = sdf.format
(todayDate); Date parsedDate = sdf.parse(date);
System.out.println(strDate); System.out.println
(parsedDate); Calendar now = Calendar.getInstance
(); now.setTime(parsedDate); now.add
(Calendar.DAY_OF_MONTH, daysToAdd); System.out.println
(now.getTime());}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rahul
there is one adddate funtion in qtp u can use that function
for more detail see date and time function in qtp help
please let me know if u still have any doubt
thanks
rahul pandey
writetorkpandey@gmail.com
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the difference between wait and wait function
Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.
What are the different types of action?
HoW to open QTP in Real time.after getting the qtp window how to log in .pl answer real time people
What is fragmentation and paging?
What is TOM in QTP?
How will u find that how many List boxes( and check boxes) are present in one particular window
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
what is the code in QTP to take screen shot?
Differentiate the type of test cases which can be automated and which cannot be automated?
Where we save all scripts in the QTP
5 Answers Ordain Solutions, Sathya Technologies,
waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable in qtp??