Activity Forums Salesforce® Discussions How to get all event from a time interval using SOQL?

  • Gourav

    Member
    June 2, 2016 at 1:14 pm

    Change user start time and End time in GMT and then use in where clause in SOQL. Try this example

    Datetime startDt = Datetime.valueOfGmt(startTime);
    Datetime.endDt = Datetime.valueOfGmt(endTime);

    now use this in query events in start date and end date.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos