Validate Expiration date
I am trying to validate membership expiration date. (I am a beginner)
Although this part works fine:
<td class='headerTD'><strong>
My Discussions | </strong>
<% =f_name %> <% =l_name %> <% if session("dtlast") <> "" then response.write " | <i>your last visit was:</i> " %><% =session("dtlast") %> <% response.Write("| Your membership expires on ") %><% =dtExpire%> <% response.Write("| current date ") %><% =FormatDateTime(Now(),2) %>
</td>
This part is not working. Is there anything wrong with this code?
...
dtExpire = trim(request("dtExpire"))
if dtExpire <= FormatDateTime(Now(),2) then
response.Redirect("login_MEMBERSHIP.asp")
end if
...
|