Skip to main content
Nishanth Mandala (LastPass) 님이 #Apex에 질문했습니다
Could someone help me out with this? 

integer dt1 = day( datevalue(cc1.ClosedDate) ) - today();
답변 3개
  1. 2016년 3월 29일 오후 12:54
    Ramshah, 

    Use the daysBetween method in the date class:

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

     
0/9000