If anyone would like the answer to this, here it is in VB.Net,
Dim files() AsString = Directory.GetFiles("C:\temp\", "*.*")
Dim i As Int32
For i = 0To files.GetUpperBound(0)
If System.IO.Directory.GetCreationTime(files(i)) > DateTime.Now.AddDays(-14) ThenFile.Delete(files(i))
EndIfNext i