SHARE
TWEET

Untitled

a guest Sep 24th, 2013 64 Never
  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 );
RAW Paste Data
Top