Triggers: Difference between revisions

5 bytes removed ,  6 October 2016
m
no edit summary
mNo edit summary
mNo edit summary
Line 220: Line 220:
If you need to identify the beginning of a new day in the Date/Time field, the script requires to connect the JavaScript library '''moment.js''' [http://momentjs.com/ moment.js]
If you need to identify the beginning of a new day in the Date/Time field, the script requires to connect the JavaScript library '''moment.js''' [http://momentjs.com/ moment.js]


<source lang="javascript" line>
<source lang="javascript">
var m = moment().add(1,'d')                        // Using the moment.js library function moment(),
var m = moment().add(1,'d')                        // Using the moment.js library function moment(),
                                                   // get the current time and add 1 day
                                                   // get the current time and add 1 day