Version

UltraCalcFunctionDays360 Class

Returns the number of days between two dates based on a 360-day year (twelve 30-day months), which is used in some accounting calculations.
Syntax
'Declaration
 
Public Class UltraCalcFunctionDays360 
   Inherits BuiltInFunctionBase
public class UltraCalcFunctionDays360 : BuiltInFunctionBase 
Remarks

DAYS360(start_date,end_date,method)

Start_date and end_date are the two dates between which you want to know the number of days.

If start_date occurs after end_date, DAYS360 returns a negative number. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.

Method is a logical value that specifies whether to use the U.S. or European method in the calculation:

FALSE or omitted U.S. (NASD) method. If the starting date is the 31st of a month, it becomes equal to the 30th of the same month. If the ending date is the 31st of a month and the starting date is earlier than the 30th of a month, the ending date becomes equal to the 1st of the next month; otherwise the ending date becomes equal to the 30th of the same month.

TRUE European method. Starting dates and ending dates that occur on the 31st of a month become equal to the 30th of the same month.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also