System.IO.Directory.GetCreationTimeUtc Method

Gets the creation date and time, in Coordinated Universal Time (UTC) format, of a directory.

Syntax

public static DateTime GetCreationTimeUtc (string path)

Parameters

path
The path of the directory.

Returns

A structure that is set to the creation date and time for the specified directory. This value is expressed in UTC time.

Remarks

Note:

This method may return an inaccurate value, because it uses native functions whose values may not be continuously updated by the operating system.

If the directory described in the path parameter does not exist, this method returns 12:00 midnight, January 1, 1601 A.D. (C.E.) Coordinated Universal Time (UTC).

Use this method to get the creation time for a directory based on Coordinated Universal Time (UTC).

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0