OpenWGA 7.10 - TMLScript reference
AFW.UtilMethod :
dateRange(date1, date2)
On object | AFW.Util |
Usage | Returns a human readable string for the date range. |
Description |
See samples below. The result string currently is german only. date1 or date 2 may be null. |
Parameters |
date1, date2 - Date objects |
Return value | date range string |
Allowed in script types |
|
Examples |
var d1 = WGA.Date("1.2.2020 10:00", "d.M.yyyy hh:mm") var d2 = WGA.Date(d1).modify("d", 7) return AFW.Util.dateRange(d1, d2) // 1. bis 8. Feb 2020 var d2 = WGA.Date(d1).modify("M", 7) return AFW.Util.dateRange(d1, d2) // 1. Feb bis 1. Sep 2020
|