5
Answers

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

softairhk

softairhk

21y
3k
1
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)