function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EvertonSzekeresEvertonSzekeres 

Duration Field

How can I create a duration field?

It will work like the field on the report.
But I want different types of dates.

I updated one custom date field in case when one of my tasks is completed.
And I want the duration between this custom date field and the closed date.

Thanks !
Best Answer chosen by EvertonSzekeres
EvertonSzekeresEvertonSzekeres
I already found my error by reading again and again my error.

I thik this happen to everyone, haha.

I just change my Custom Date field to Custom Date/Hour field and it works.

Thanks !

All Answers

StephaneTStephaneT
Just create a formula field ( the closed date - custom date field )
EvertonSzekeresEvertonSzekeres
Salesforce don't accept (-) in date.
StephaneTStephaneT
it is a substraction sign ( minus)
StephaneTStephaneT
Let me know if it worked
EvertonSzekeresEvertonSzekeres
I already found my error by reading again and again my error.

I thik this happen to everyone, haha.

I just change my Custom Date field to Custom Date/Hour field and it works.

Thanks !
This was selected as the best answer