directory class : LastWriteTime(string) setter
Sets a date and time when the directory was last written to.
directoryInstance.LastWriteTime = value
|string||A date and time when the directory was last written to.|
directory dir = new directory("c:\somewhere...");
dir.LastWriteTime = "3/04/2016 4:13:00";
It's a wrapper of the System.IO.DirectoryInfo.LastWriteTime property.
The assigned value need to be a string that can convert to the C#'s DateTime type.