收藏Nishanth Mandala (LastPass) 提问于 #Apex2016年3月29日 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 个回答排序按日期排序按最有帮助排序按日期排序加载更多评论...John Pipkin (OpFocus, Inc)2016年3月29日 12:54Ramshah, Use the daysBetween method in the date class:Integer dt1 = (system.today()).daysBetween(Date.valueOf(cc1.ClosedDate)); 添加评论撰写回答...粗体斜体下划线删除线项目符号列表编号列表添加链接代码块插入图像附加文件链接 URL取消保存0/9000回复
John Pipkin (OpFocus, Inc)2016年3月29日 12:54Ramshah, Use the daysBetween method in the date class:Integer dt1 = (system.today()).daysBetween(Date.valueOf(cc1.ClosedDate));