摘要:
asp.net里获 取当前时间,并字符串格式化转换 1.string strTime = DateTime.Now.ToLongTimeString(); 2. DateTime dt = DateTime.Now; String str = dt.ToString("yyyy-MM-dd"); 或者 string str = DateTime.Now.ToString("yyyy-MM-dd"); or string str = DateTime.Now.ToShortDateString(); 3.DateTime.Now.ToString(&quo 阅读全文