0
adding eg 7 days to a date+time field
Hi, I just cant figure out how to add days to a date+time field and I couldnt find anything in forum.
Lets say eg 15.10.2024, 9:00
date+time field := date(year(date+time), month(date+time), day(date+time) + 7);
forwards the date by 7 days to 22.10.2024, but the hour and minutes turn to 1:00.
thnx
12 replies
-
That is because you didn’t tell Ninox what time to add. Try:
date+time field := date(year(date+time), month(date+time), day(date+time) + 7,time(date+time);
Here is the documentation for datetime().
-
, thank you so much guys!Both versions work perfectly.
Now I have the problem, which one should I take?
thnx again
-
Or simply: 'Date + Time' + 7 * 24 * 3600000
Content aside
- Status Answered
- 2 mths agoLast active
- 12Replies
- 58Views
-
4
Following