You need to sign in to do that
Don't have an account?
![Priya Aakanksha Priya Aakanksha](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Field is not writeable: Opportunity.IsWon
error is showing in batch class
1)Method does not exist or incorrect signature: void day() from the type User
2)Field is not writeable: Opportunity.IsWon
========================================
if(Opp.LastModifiedBy.day() > system.today()+30){
opp.LofB__c='Retail';
opp.ISWON ='false';
1)Method does not exist or incorrect signature: void day() from the type User
2)Field is not writeable: Opportunity.IsWon
========================================
if(Opp.LastModifiedBy.day() > system.today()+30){
opp.LofB__c='Retail';
opp.ISWON ='false';
ISWON is hidden field i got that field name after extract the data.