Suppose you want to set or change the creation time of your file located in some place.
Directory.SetCreationTime("PATH OF FILE", DateTime);
For setting the creation time of your file you have to send two parameters. First parameter will be the path of the file and second parameter will be the datetime object to give the creation that to that file.