subtracting 1 day from the current date
Step-1
<%
Function pd(n, totalDigits)
if totalDigits > len(n) then
pd = String(totalDigits-len(n),"0") & n
else
pd = n
end if
End Function
%>
Step-2
<%response.write Pd(DAY (date()-1),2) & Pd(Month(date()),2) & YEAR(Date())%>(Yesterday)
====================================
Best Regard
Imran Khan
+923343849896
|