Show contents 

Ms > Ms Assembly Interfaces > ITimeSeries > ITimeSeries.CurrentDate

ITimeSeries.CurrentDate

Syntax

CurrentDate: DateTime;

Description

The CurrentDate property returns the current calendar point of the series.

Example

This example describes custom method. The data series is passed by points.

Add links to the MathFin and Ms system assemblies.

Public Function UserFunc(Input: ITimeSeries): Double;
Var
    i: Integer;
Begin
    i := Input.CurrentIndex;
    If Input.CurrentDate < DateTime.Now
        Then Return Math.Log10(Input.Item(i));
        Else Return Double.Nan
    End If;
End Function UserFunc

The method returns the natural logarithm for series points to the current date.

See also:

ITimeSeries