You need to sign in to do that
Don't have an account?
JBabu
To assign today's date to a date variable
Hi,
I have a date variable called start_date and I am trying to assign today's date to it like below in apex class:
start_date = today();
I am getting the below issue:
Error: Compile Error: Method does not exist or incorrect signature: today().
Please let me know what is the way to get this.
Thanks,
Jagadish.
If u need the date use ---------------- System.today();
if u need the date and time use --- System.now();
All Answers
If u need the date use ---------------- System.today();
if u need the date and time use --- System.now();
Thank you Nanduri...