Skip to main content
Michael Kim (Casper) 님이 #Lightning Experience에 질문했습니다
Hi, 

I am trying to add a few hours to a DateTime using SOQL. Any suggestion how I should do it? I tried this code which is not working:

DateTime CreatedOn = CreatedDate.addHours(-4);

SELECT count(CaseNumber)   FROM Case  WHERE day_only(CreatedOn)=TODAY

Thanks!
답변 6개
  1. 2015년 4월 27일 오후 4:01
    Thank you Manoj, 

    I get "unexpected token: DateTime" when I run your query.