2012-10-08 37 views

回答

1

你可以使用一個custom DateTime format

DateTime today = DateTime.Today; 
string formattedDate = today.ToString("yyyyMMdd");