标签:
public string GetCheckDate() { var now = DateTime.Now; var year = now.Year; //年 var month = now.Month; //月 var day = now.Day; //日 var clock = year + "-"; if (month < 10) clock += "0"; clock += month + "-"; if (day < 10) clock += "0"; clock += day + ""; return (clock); }
标签:
原文地址:http://www.cnblogs.com/rzm2wxm/p/5616482.html