![]() |
| |||||||
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| Here's a function to create a date last modified dynamically on your web pages Code: <%function lastModified()
Dim strURL, aryURL, pagename, objRegExp
strURL = Request.ServerVariables("SCRIPT_NAME")
aryURL = Split(strURL, "/", -1, 1)
pagename = aryURL(ubound(aryURL))
Dim oFSO,oFile,dMod
Set oFSO=Server.CreateObject("Scripting.FileSystemObject")
'BE SURE TO CHANGE THE NAME IN THE NEXT LINE!!
Set oFile=oFSO.GetFile(Server.MapPath(pagename))
dMod=oFile.DateLastModified
dYear = year(dMod)
dMonth = monthname(month(dMod + 1))
dDay = day(dMod)
Set oFSO=Nothing
Set oFile=Nothing
Response.Write dMonth & " " & dDay & ", " & dYear
end function
%>
Code: This page last modified on: <%=lastModified()%>
__________________ Quote of the Month: Strife: As long as we have each other, we'll never run out of problems. Questions to Ponder: Should vegetarians eat animal crackers? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright © 2008 sbenj69 |
| Sponsored Links |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
| Sponsored Links |
| ASP.NET Resource Index a directory of ASP.NET tutorials, applications, scripts, assemblies and articles for the novice to professional developer. Free Web Directory Including Chats and Forums Resources, Offer automatic, instant and free directory submissions. | URLZ Web Directory URLZ Web Directory Free Web Directory - Add Your Link The Little Web Directory | Free Web Directory Pegasus free web directory is a free directory organised by categories. Web Directory & SEO Services dirroot web directory |