OpenWGA 7.10 - TMLScript reference
WGA » WGA.Date()Method :
diff(otherDate, unit)
On object | WGA.Date() |
Usage |
Calculates the difference between this date and another date and return the result based on the given unit. |
Parameters |
otherDate Any other date object unit (String): Character determining the date unit to return: "d" - Days |
Return value |
Number |
Allowed in script types |
|
Examples |
WGA.Date("25.06.2020", "dd.MM.yyyy").diff(now(), "d") |