Hello
I'm trying to calculate date in past: what date was 10 days ago.
I create new Moment and Duration and subtracting them with system errror: Expected Moment.
var Today = new Time.Moment (Time.Today.value())
var Days = new Time.Duration(i * 86400)
var DateInPast = Today.subtract(Days)
All works with function add(), bud subtract() seems to be unable to subtract Duration from Moment.
Any idea?
Regard Petr