Forum Discussion
Anonymous
6 years agoNot applicable
Datediff function with decimals
Hi everyone, I am using the function Datediff( ), but the results I am getting are integers, and I need than these ones become decimals. Example: Reuslt: 1215 Expected: 1214.7 Any suggesti...
- 6 years ago
Hi Anonymous
Change date type and format as below:
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
6 years agoSuper User
What are you taking as date diff? Assume you are taking Day , Then take in hours and divide by 24
Diff = datediff(date1,date2,day)
Diff = datediff(date1,date2,Hour)/24
Same is true with other types