Removing time from showing in a referenced date field in a calculation.
We referenced a date field in a calculation. Turning of the time part in the original date field did not prevent it from showing in the calculation field. Can one show the date and not the time?
Thanks
-
Hi Charl,
You could use the following. I'm not sure if there is a better way to do it but this will work
If you are referencing from the same app
var d = @Date
d.getDate() + "/" + d.getMonth() + "/" + d.getFullYear()if you are referencing from a related app
var d = @All of Date[0]
d.getDate() + "/" + d.getMonth() + "/" + d.getFullYear() -
Hi Charl,
I assume you display the date in the calculation field like a "real" date field. So the calculation is date type (calc. fields can be date, number or text type). In the template creator every field has a little triangle on the left side, this is for field settings. Click it and deselect "Show time". It will still be shown in the calc. preview, but not in the item view.
Rainer
Please sign in to leave a comment.
Comments
5 comments