Aggiungi ai preferitiNishanth Mandala (LastPass) ha fatto una domanda in #Apex29 mar 2016, 12:42Calculate number of days between two datetime values in apexCould someone help me out with this? integer dt1 = day( datevalue(cc1.ClosedDate) ) - today();3 risposteOrdinaOrdina per dataOrdina in base alla maggiore utilitàOrdina per dataCarica più commenti...John Pipkin (OpFocus, Inc)29 mar 2016, 12:54Ramshah, Use the daysBetween method in the date class:Integer dt1 = (system.today()).daysBetween(Date.valueOf(cc1.ClosedDate)); Aggiungi un commentoScrivi una risposta...GrassettoCorsivoSottolineaBarratoElenco puntatoElenco numeratoAggiungi linkBlocco codiceInserisci immagineAllega fileURL del linkAnnullaSalva0/9000Rispondi
John Pipkin (OpFocus, Inc)29 mar 2016, 12:54Ramshah, Use the daysBetween method in the date class:Integer dt1 = (system.today()).daysBetween(Date.valueOf(cc1.ClosedDate));