简单使用ToString()来格式化datetime.now日期的显示。 如:. DateTime.Now.ToString("yyyy-MM-dd"). 得到的结果是:. 2009-09-07. 也可以格式化为毫秒.
確定! 回上一頁