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
Swamy P R NSwamy P R N 

Converting year into days in formulae field

Hi Team,

I have two dates those are warranty start date & waranty end date. If waranty end date is over or completed than i have a checkbox field that needs to be false. If waranty end date is not completed than i need that checkbox to be true.

Thanks in advance!!!
 
Best Answer chosen by Swamy P R N
Robert ZentgrafRobert Zentgraf
Hi Swamy,

please try something like:
IF(Waranty End Date > TODAY(), false, true)

Regards
Robert
(mindforce: http://www.mind-force.de)

All Answers

MagulanDuraipandianMagulanDuraipandian
Create a batch class and schedule it

http://www.infallibletechie.com/2012/05/apex-scheduler.html
Robert ZentgrafRobert Zentgraf
Hi Swamy,

you can use a formula field as checkbox and then it should be possible.

Regards
Robert
(mindforce: http://www.mind-force.de)
Swamy P R NSwamy P R N
Hi Robert,

I'm utelising Checkbox as the return type only. I need suggestion for the formulae logic. So will you share your idea guys..
Robert ZentgrafRobert Zentgraf
Hi Swamy,

please try something like:
IF(Waranty End Date > TODAY(), false, true)

Regards
Robert
(mindforce: http://www.mind-force.de)
This was selected as the best answer
siddarth rajsiddarth raj

Yes

IF(Waranty End Date > TODAY(), false, true) will work for your requirement. You doesn't really need to do get the date in days either.