ASP DateCreated Property
-- Learning not just technology, but dreams!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
ASP Tutorial
ASP Tutorial ASP Introduction ASP Installation ASP Syntax ASP Variables ASP Procedures ASP Forms ASP Cookies ASP Session ASP Application ASP #include ASP Global.asa ASP Send Email
ASP Objects
ASP Response ASP Request ASP Application ASP Session ASP Server ASP Error ASP FileSystem ASP TextStream ASP Drive ASP File ASP Folder ASP Dictionary ASP ADO
ASP Components
ASP AdRotator ASP BrowserCap ASP Content Linking ASP Content Rotator
ASP and AJAX
AJAX Introduction AJAX ASP AJAX Database
ASP Summary
ASP Quick Reference ASP Summary
ASP Examples
ASP DateCreated Property
Complete File Object Reference
The DateCreated property is used to return the date and time when the specified file or folder was created.
Syntax
FileObject.DateCreated
FolderObject.DateCreated
Example for File Object
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:test.txt")
Response.Write("File created: ")
Response.Write(f.DateCreated)
set f=nothing
set fs=nothing
%>
Output:
File created: 9/19/2001 10:01:19 AM
Example for Folder Object
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:test")
Response.Write("Folder created: ")
Response.Write(fo.DateCreated)
set fo=nothing
set fs=nothing
%>
Output:
Folder created: 9/19/2001 10:01:19 AM
YouTip