You need to sign in to do that
Don't have an account?

TODAY() in visualforce controller
Hi,
I am using TODAY() function to compare date.
Facing following compile time error while saving page :
Error: Compile Error: Method does not exist or incorrect signature: TODAY() at line 30 column 76
Does TODAY() function is allowed in visualpages ?
Any help will be appreciated.
Thanks.
I am using TODAY() function to compare date.
Facing following compile time error while saving page :
Error: Compile Error: Method does not exist or incorrect signature: TODAY() at line 30 column 76
Does TODAY() function is allowed in visualpages ?
Any help will be appreciated.
Thanks.

today() is fully support in visualforce page formulas but given the error you posted it looks like your are trying to use this function inside of apex code in your controller. You can access the current day in apex code using System.today().

Thank you Doug.