Home Notices Documents Classes Download Others Rice
Classes  >  directory  >  CreationTime(string)
directory class : CreationTime(string) setter

Description

Sets a date and time when the directory was created.

Syntax

directoryInstance.CreationTime = newCreationTime

Arguments

ClassNameDescription
stringnewCreationTimeA date and time when the directory was created.

Return value

None

Sample code

1:

directory dir = new directory("c:\somewhere...");

2:

dir.CreationTime = "3/04/2016 4:13:00";

Notes

It's a wrapper of the System.IO.DirectoryInfo.CreationTime property.

The date and time string will be converted to the C#'s DateTime type by the System.DateTime.Parse(String) method.

Links for reference

Copyright © Rice All rights reserved.