Skip to main content
Sooriya Kan (achievers) 님이 #Apex에 질문했습니다
i need to  select  two dates from visualforce page (calender )  after cliciking on the button , in apex controller i need to use those two dates for createddate in the quer

for example if i select 1/20/2017 and 2/20/207  as dates in my page , the query need to retrive data between those two dates in apex controller 
답변 1개
  1. 2017년 12월 12일 오후 5:52
    You can direclty use the these variables(both date) in your query.

    where createddate>:d1.

    Let me know if this helps else paste your code sample , wil help you.
0/9000