Friday 29 July 2016

Moving dates "After" or "Before" 15 days or whatever days we need :

date d = system.today().addDays(-15);
Account [] acc=  [select id from account where createdDate = :d];
System.debug('Test'+acc);
System.debug('date'+d);

No comments:

Post a Comment

Batch Apex

1. What are transaction limits in apex? Total number of SOQL queries issued1 - 100 Total number of records retrieved by SOQL queries - 50...