I read the topic that showed how to set a field to “{Constant.Today}”, but now I need to set TransView.ToDate to two days from today. I’m still new to Kinetic Web and I’m not sure how to do that.
Javascriiiipt.
Here’s an example that will get you Today’s date minus 1 year.
This would go in the expression field of a row-update widget.
#_'(new Date(new Date().getFullYear() - 1, new Date().getMonth(), new Date().getDate())).toLocaleDateString()'_#
3 Likes
There’s also the option of creating a small function that does the date calculation and returns the desired date … but that involves a network call to the server for something tiny
I never remember that Javascript calls are possible/allowed
1 Like