OpenWGA 7.10 - TMLScript reference
WGA » WGA.Date()Method :
modify(unit, amount)
On object | WGA.Date() |
Usage |
Modifies the date and returns the resulting date as WGADate object for further method chaining. |
Description |
Modifies a date by adding/substracting a certain timespan |
Parameters |
unit (String): Character determining the date unit to add: "d" or "D" - Day amount (Number): Amount of date units to add to the date. Negative amounts effectively substract the unit. |
Return value |
WGADate object |
Allowed in script types |
|
Examples |
WGA.Date("25.06.2020", "dd.MM.yyyy").modify("d", 10) |