नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Syntax
Date.AddMonths(dateTime as any, numberOfMonths as number) as any
About
Returns the date, datetime, or datetimezone result from adding numberOfMonths months to the datetime value dateTime.
dateTime: Thedate,datetime, ordatetimezonevalue to which months are being added.numberOfMonths: The number of months to add.
Example 1
Add 5 months to the date, datetime, or datetimezone value representing the date 5/14/2011.
Usage
Date.AddMonths(#date(2011, 5, 14), 5)
Output
#date(2011, 10, 14)
Example 2
Add 18 months to the date, datetime, or datetimezone value representing the date and time of 5/14/2011 08:15:22 AM.
Usage
Date.AddMonths(#datetime(2011, 5, 14, 8, 15, 22), 18)
Output
#datetime(2012, 11, 14, 8, 15, 22)