Write, Bureaucrats, Administrators
4,332
edits
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" | <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 |