Returns the end date of the current year treating the system date as current date. The time returned is 11:59:59 PM.
= ENDOFCURRENTYEAR()
None
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 |
= ENDOFCURRENYEAR() |
As SYSTEM date is 1/28/2010, 12/31/2010 11:59:59 PM |
= ENDOFCURRENTYEAR().Year |
The current year. |
= ENDOFCURRENTYEAR().AddDays(1) |
The start date of next year. |
= ENDOFCURRENTYEAR().AddDays(1).Year |
The next year. |
http://msdn.microsoft.com/en-us/library/system.datetime_members(VS.71).aspx