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

Error: Illegal assignment from Integer to Date
Hi All,
I declared a variable of date type and when i try to assign a value to that variable its throwing the error "Illegal assignment from Integer to Date". The value assigned is
rp.JobStartDate= 11/20/2008; where JobStartDate is of type date.
Kindly clarify.
Thanks,
Ram
rp.JobStartDate = Date.newInstance(2008,11,20));
Regards
Paul
http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
DateTimeVariable.format('
EEE, d MMM yyyy
') --> have to show : Thu, 6 Oct 2008
You can see all the Date and DateTime methods at the apex documentation:http://www.salesforce.com/us/developer/docs/apexcode/index.htm
Hope it helps
Br1.
Thank u very much.