If DateDiff("D",Sdate,Mdate) < 0 Then isBetween = false
If DateDiff("D",Mdate,Edate) < 0 Then isBetween = false
if IsBetween Then
Response.Write "<p>Mdate is between Sdate & Edate<br>"
Else
Response.Write "<p>Mdate is <b>NOT</b> between Sdate & Edate<br>"
End If
%>