Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 223: | Line 223: | ||
<source lang="javascript" line> | <source lang="javascript" line> | ||
var m = moment().add(1,'d') // Using the moment.js library function moment(), get the current time and add 1 day | var m = moment().add(1,'d') // Using the moment.js library function moment(), | ||
// get the current time and add 1 day | |||
m.hour(8).minute(0) // Set the time to hour 8 and minute 0 | m.hour(8).minute(0) // Set the time to hour 8 and minute 0 | ||
entryDefault().set("Date" , m.toDate().getTime()) // Use that as the default value for the field Date | entryDefault().set("Date" , m.toDate().getTime()) // Use that as the default value for the field Date |