Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 24th, 2013  |  syntax: None  |  size: 0.45 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. DateTime.Now.Day.ToString("00");
  2. DateTime.Now.ToString("dd");
  3.        
  4. DateTime.Now.Day.ToString("00");
  5.        
  6. if(DateTime.Now.Day < 10)
  7.      return "0" + DateTime.Now.Day.ToString();
  8. else return DateTime.Now.Day.ToString();
  9.        
  10. DateTime.Now.Day.ToString("D2")
  11.        
  12. DateTime.Now.ToString("dd");
  13.        
  14. DateTime currentDate = DateTime.Now;
  15.  
  16. // use the current date/time to configure the output directory
  17. String dateTime = String.Format( "{0}\{0:yyyy-MM-dd}", currentDate );