Skip to main content
Nishanth Mandala (LastPass) ha fatto una domanda in #Apex
Could someone help me out with this? 

integer dt1 = day( datevalue(cc1.ClosedDate) ) - today();
3 risposte
  1. 29 mar 2016, 12:54
    Ramshah, 

    Use the daysBetween method in the date class:

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

     
0/9000