Skip to main content
Nishanth Mandala (LastPass) a posé une question dans #Apex
Could someone help me out with this? 

integer dt1 = day( datevalue(cc1.ClosedDate) ) - today();
3 réponses
  1. 29 mars 2016, 12:54
    Ramshah, 

    Use the daysBetween method in the date class:

    Integer dt1 = (system.today()).daysBetween(Date.valueOf(cc1.ClosedDate));

     
0/9000