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
SimrinSimrin 

Detecting expiration date in visualforce

Hello,

I have table displayed in below manner.

test
My usecase is, User will specify the end date.

and if this end date is passed then the text1 should be set to Text2.

I could do it in visualforce page, but I do not want to check this condition everytime a action is taken on page. Is there any visualforce capacity i could use ?
Best Answer chosen by Simrin
pconpcon
There is nothing built in to VisualForce that does this.  You would either have to do this via Javascript (if you do I recommend using MomentJS [1]) or doing this in the Apex Controller and call the action onChange of the text box.

[1] http://momentjs.com/