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 starting date of that period, based on the date nDate.

 

The example code below shows how to calculate the beginning and ending dates of holy week.

nDateEaster = GetEasterFor(2020)
nStartHolyWeek = GetDurationPeriodDateBegin('w+00', nDateEaster)
nEndHolyWeek = GetDurationPeriodDateEnd('w+00', nDateEaster)

Note, from the above example, that the semicolon ":" is not part of the sDurationSuffix.

 

See also: GetDurationPeriodDateBegin.

 


Topic 179265, last updated on 18-Apr-2020