Returns the end date of the quarter for the date passed to the function. The time returned is 12:00:00 AM.
= ENDOFQUARTER(valueDate)
valueDate |
A date time value whose end date of the quarter is to be determined. The value can contain DateTime as a string (e.g. “02/19/2009 14:30:30.3”, "2009-02-19 14:30:30.3", "19 Feb 2009 2:30:30.3 PM ", "Thu, 19 Feb 2009”) or as a DateTime object. |
DateTime. The function returns a Microsoft .NET DateTime object. Any properties or member functions of the DateTime object can also be accessed or used in formulas.
Example |
Returns |
= ENDOFQUARTER("02/19/2009") |
3/31/2009 11:59:59 PM |
= ENDOFQUARTER("02/19/2009").MONTH |
The month for the end of quarter for the given date. |
= ENDOFQUARTER("02/19/2009").ADDMONTHS(3) |
The end date of quarter next to the given date. |
= ENDOFQUARTER("02/19/2009").AddMonths(3).Month |
The month for the end of quarter next to the given date. |
http://msdn.microsoft.com/en-us/library/system.datetime_members(VS.71).aspx