EventTypeDue::dueDays2date Method [AX 2012]
Converts a given EventDueDays enumeration value and a date to a date.
Syntax
client server public static anytype dueDays2date(
EventDueDays dueDays,
anytype curDate,
boolean add)
Run On
Called
Parameters
- dueDays
Type: EventDueDays Enumeration
The EventDueDays enumeration value to convert.
- curDate
Type: anytype
The date to convert.
- add
Type: boolean
A Boolean value that specifies whether to add or subtract the given curDate. When it is true, the dueDays is added to curDate; when it is false, it is subtracted.
Return Value
Type: anytype
The calculated date.
Remarks
If the EventDueDays enumeration value is changed, this method should be modified accordingly.