Please enable JavaScript to view this site.

 

int = GetDurationPeriodDateEnd(sDurationSuffix,nDate)

 

This macro function takes a string sDurationSuffix containing a duration suffix and returns the ending date of that period, based on the date nDate.

 

The following example obtains the beginning and ending dates of the month containing the incoming token’s date.

nStartDate = GetDurationPeriodDateBegin('m+00', n_TokenDate)
nEndDate = GetDurationPeriodDateEnd('m+00', n_TokenDate)

Always supply the duration suffix without its leading colon, which is not part of the sDurationSuffix.

 

See also: GetDurationPeriodDateBegin.

 


Topic 179265, last updated on 17-Oct-2026