0
Timestamp - 24 hours
I am trying to get a date time field to be set by button to 24 hours prior to current time.
any help?
7 replies
-
'Date / Time' := now() + 86400000
The magic number is the number of millisecondes in a day.
-
You said "prior"… Replace "+" by "-".
-
-
it seems not to let minus a timestamp
-
it will allow + but not -
-
datetime(number(now()) - 86400000)
Steven
-
"+" works, but not "-"… Ninox is an inexhaustible source of fun. And just to enjoy the funny side of life, this works:
let d := -86400000;
'Date / Time' := now() + d
Steven's formula is of course more reasonable.
Content aside
- 3 yrs agoLast active
- 7Replies
- 393Views