Formula randomly displays date+hour instead of only date

G

Hello,

I use a very simple formula that is meant to calculate the difference of days between two date fields. It works, however sometimes the value is stored as "xx days" and sometimes as xx days 1:00" or 23:00 or other hours. I don't understand where the hours come from and I'm looking for a solution to only display the difference in days.

An example of formula used is: 'Reception of validated FS (IC)' - 'Date of signature of the contract with the back donor (IC)'

Thanks in advance for your suggestions.

F

I just tried that and was able to duplicate it. Weird as I only picked days.

 

Anyways, if you just want to find the number of days between two days you can use the days function:

 

days(start,end)

 

It returns only a number but at least it doesn't give you the silly hours.

 

https://ninox.com/en/manual/calculations/reference-of-functions-and-language

Scroll down to near the end to see all of the date functions you can use.

A

This subject has been discussed several times. See for example:

https://ninox.com/en/forum/technical-help-5ab8fe445fe2b42b7dd39ee7/date-fields-and-timezones-issue-unix-vs-utc-conflict-5b7462cc03f12310870ad569

G

Thanks to both of you. Fred, your solution works well and solves the issue for me!

Reply