Utility Functions

function Round2( _dDouble )

Return value
Numeric value rounded to 2 decimal places.

Parameters
_dDouble – the numeric amount to round

function Round( _dDouble, _iPrecision )

Return value
Numeric value rounded to a specified number of decimal places.

Parameters
_dDouble – the numeric value to round
_iPrecision – the number of decimal places to round to

function GetYear( _dtDateTime )

Return value
Numeric value containing the year.

Parameters
_dtDateTime – the date to retrieve the date information from

function GetMonth( _dtDateTime )

Return value
Numeric value containing the month.

Parameters
_dtDateTime – the date to retrieve the date information from

function GetDay( _dtDateTime )

Return value
Numeric value containing the day of month.

Parameters
_dtDateTime – the date to retrieve the date information from

function GetToday( )

Return value
Date value containing the date today.

Parameters
No parameters