DayFromDateTime

From MultiCharts
Jump to navigation Jump to search

Returns a numerical value indicating the day of the month for the specified DateTime value.

The integer portion of the DateTime value specifies the number of days since December 30th, 1899, and the fractional portion of the DateTime value specifies the fraction of the day since midnight.

Usage

DayFromDateTime(DateTime)

Where:

DateTime - a double-precision decimal DateTime value.

Examples

DayFromDateTime(39449.25000000)

Will return a value of 2, indicating the 2nd day of the month of January, 2008.

DayFromDateTime(ComputerDateTime)

Will return 19, indicating that today is the 19th day of the current month.