Please help to provide the given specific cde.
Condition:- The date is should be 4 days from the current date and that date is should not be Saturday/Sunday.
sorry not "cde" its "date".
What have you tried? Not here to just write code for you unless you're also sending along a paycheck. [img]/images/graemlins/smile.gif[/img]
Everything you need to accomplish that is outlined here(and in qtp help).
Hint: WeekDay function
<font class="small">Code:</font><hr /><pre> i = 0
j = 0
CurrentDate = Now
AddWorkingDays = 4
Do until j = AddWorkingDays
i = i + 1
If Mid(WeekDayName(Weekday(DateAdd("d", i, CurrentDate))),1,1) <> "S" Then
j = j + 1
Msgbox Split(DateAdd("d",i,CurrentDate)," ")(0) </pre><hr />