sorry for repost .its urgent.i used formatdatetime function with vblongdate as per as my need.but in this i dont want weekday from date means monday tuesday.................pls
thanxs
<%
prior = Request("Date")
If isDate(prior) Then prior = CDate(prior) Else prior = #1/1/1900#
For dt = DateAdd("m",-1,Date()) To Date-1
'x=FormatDateTime(dt, vbLongDate)
'x1= Month(dt)
%>
<OPTION value="<%=dt%>" <%If dt = prior Then response.write "SELECTED" %>><%=FormatDateTime(dt, vbLongDate)%> </option>
<%
Next
%>
</SELECT></center> </td>
</tr>
thanxs
<%
prior = Request("Date")
If isDate(prior) Then prior = CDate(prior) Else prior = #1/1/1900#
For dt = DateAdd("m",-1,Date()) To Date-1
'x=FormatDateTime(dt, vbLongDate)
'x1= Month(dt)
%>
<OPTION value="<%=dt%>" <%If dt = prior Then response.write "SELECTED" %>><%=FormatDateTime(dt, vbLongDate)%> </option>
<%
Next
%>
</SELECT></center> </td>
</tr>
