file class : CreationTime(string) setter
Description
Sets a string that indicates the date and time when the file was created.
Syntax
fileInstance.CreationTime = value
Assigned value
Class | Description |
string | The new date and time when the file was created. |
Return value
None
Sample code
1: | file f = new file("c:\somewhere..."); |
2: | f.CreationTime = "3/04/2016 4:13:00"; |
Notes
It's a wrapper of the System.IO.FileInfo.CreationTime property.
The assigned value need to be a string that can convert to the C#'s DateTime type.