System.DateTime.Now.AddMonths(1).ToString() 啥意思

来源:百度知道 编辑:UC知道 时间:2024/06/18 05:16:25
AddMonths(1)??

System.Date Time.Now. Add Months (1). To String
系统日期时间。增加月(1)。字符串

例句
1 This is positively the last chance for the industry to establish such a system.
这绝对是该产业建立这样一个体系的最后机会了。
2 Errors that are made within a system that already is generally in the right Ballpark
出现在一个几臻完善的体系中的错误
3 The intruder smashed a window to get in and then neutralized the alarm system.
闯入者打碎了一扇窗户进来,然后破坏了警报系统。

把当前(现在)的时间加上一个月以后得到的时间
比如现在是2008/07/21 13:43:30
AddMonths(1)以后得到
2008/08/21 13:43:30

回与指定的 DateTime 相距指定月数的 DateTime
-----------------------------------------------------------
Visual Basic(声明)
Public MustOverride Function AddMonths ( _
time As DateTime, _
months As Integer _
) As DateTime

Visual Basic(用法)
Dim instance As Calendar
Dim time As DateTime
Dim months As Integer
Dim returnValue As DateTime

returnValue = instance.AddM