Can someone help us what would be the formula for the following:
- Elapsed date since the case was created.
- Elapsed day and time since the case was created.
Thanks
Create Text based formula field and use following formula.
Elapsed date since the case was created.
IF(FLOOR( (NOW()- CreatedDate)) > 0,TEXT( FLOOR( (NOW()- CreatedDate)) ) & " days ", "")
It will display the value like this:
19 days
Elapsed day and time since the case was created.
IF(FLOOR( (NOW()- CreatedDate)) > 0,TEXT( FLOOR( (NOW()- CreatedDate)) ) & " days ", "")
& IF(FLOOR( MOD( (NOW()- CreatedDate)* 24, 24 ) )>0,TEXT( FLOOR( MOD( (NOW()- CreatedDate)* 24, 24 ) ) ) & " hours ","")
& TEXT( ROUND( MOD( (NOW()- CreatedDate)* 24 * 60, 60 ), 0 ) ) & " minutes "
& TEXT( ROUND( MOD( (NOW()- CreatedDate)* 24 * 60*60, 60 ), 0 ) ) & " seconds"
It will display the value like this:
19 days 13 hours 7 minutes 53 seconds