look this simple example
using System.IO;
public void ChangeFileAttribute(string FileNameWithPath)
{
FileInfo Fln = new FileInfo(FileNameWithPath);
Fln.CreationTime =DateTime.Now.Date;
Fln.LastWriteTime = DateTime.Now.Date;
Fln.LastAccessTime=DateTime.Now.Date;
}