softairhk

softairhk

  • NA
  • 115
  • 0

How to change the Month into string as Jan, Feb, Mar, ..., but not 1, 2, 3...?

Oct 29 2003 12:40 AM
Hello! How to change the Month into string as Jan, Feb, Mar, ..., but not 1, 2, 3...? Please give me reply asap. Thanks! public string TDate() { string DateInString=""; int Day=DateTime.Now.Day; int Month=DateTime.Now.Month; int Year=DateTime.Now.Year; DateInString=Day.ToString(); DateInString+="-" + Month.ToString(); DateInString+="-" + Year.ToString(); return DateInString; }

Answers (5)