FavoritosNishanth Mandala (LastPass) perguntou em #Apex29 de mar. de 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 respostasClassificarClassificar por dataClassificar por mais útilClassificar por dataCarregar mais comentários...John Pipkin (OpFocus, Inc)29 de mar. de 2016, 12:54Ramshah, Use the daysBetween method in the date class:Integer dt1 = (system.today()).daysBetween(Date.valueOf(cc1.ClosedDate)); Adicionar um comentárioEscrever uma resposta...NegritoItálicoSublinhadoTachadoLista com marcadoresLista numeradaAdicionar linkBloco de códigosInserir imagemAnexar arquivosURL do linkCancelarSalvar0/9000Responder
John Pipkin (OpFocus, Inc)29 de mar. de 2016, 12:54Ramshah, Use the daysBetween method in the date class:Integer dt1 = (system.today()).daysBetween(Date.valueOf(cc1.ClosedDate));