获取时间,格式化时间

来源:互联网 发布:uu淘宝店没评价 编辑:程序博客网 时间:2024/05/17 06:20

theTime = System.DateTime.Now.ToString("hh:mm:ss"); 

theDate = System.DateTime.Now.ToString("MM/dd/yyyy"); 

theMonth = System.DateTime.Now.get_Month(); 

theDay = System.DateTime.Now.get_Day();

原创粉丝点击