VOOZH about

URL: https://www.geeksforgeeks.org/websites-apps/asp-datecreated-property/

⇱ ASP DateCreated Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ASP DateCreated Property

Last Updated : 25 Mar, 2021

The ASP DateCreated Property is used to return the date and time when the given file was created on the system.

Syntax:

  • For File Object:

    FileObject.DateCreated
  • For Folder Object:

    FolderObject.DateCreated

The below examples demonstrate the ASP DateCreated Property.

Example 1: The below code demonstrates the ASP File.DateCreated Property.

Output:

File created on: 3/4/2020 10:07:20 AM

Example 2: The below code demonstrates the ASP Folder.DateCreated Property.

Output:

This folder was created on: 12-03-2021 12:54:29 
Comment
Article Tags: