DateFromMonth()


Calculates the date for a prior or future month.

Syntax

DateFromMonth(<xDate>, <nMonths>) --> xNewDate

Arguments

<xDate> --> is the date to convert from.

<nMonth> --> is the number of months to add or subtract. Specify as a negative number to subtract.

Returns

Returns the new date.

Description

DateFromMonth() calculates what the date will be from a specified date plus a specified number of months into the future or past.

Example

* Returns the date from the 1st of February 2001,

* 3 months into the future:

DateFromMonth(CTOD('01/02/01'), 3)

____________________________

Related Topics:

Business Function List



CAPITAL VISUAL BUILDER