DayCountConvention

DayCountConvention
is an option that specifies the day count convention used by DateDifference.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Compute the date difference subject to a typical bond day count:

In[1]:=
Click for copyable input
Out[1]=

This is different from the number of days between the two dates:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=

Day count conventions differ with respect to the count applied to the last days of the month:

In[1]:=
Click for copyable input
Out[1]=
New in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »