andrew4582

GetBackupFileName

Aug 15th, 2010
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. //Backup File  
  2.     public string GetBackupFileName() {
  3.             DateTime n = DateTime.Now;
  4.             string fName = n.Year  
  5.                 + "_" + n.Month  
  6.                 + "_" + n.Day  
  7.                 + "_" + n.Hour  
  8.                 + "" + n.Minute
  9.                 + "" + n.Second  
  10.                 + "" + n.Millisecond;
  11.             return "ConnectionData_" + fName + ".xml";
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment