You need to sign in to do that
Don't have an account?
si ri
how to query standard Date/Time fields.
Hi all,
How to fetch records between StartDateTime and EndDateTime including StartDateTime and EndDateTime records by comparing with Activity date
StartDateTime : datatype( Date/Time)
EndDateTime :datatype( Date/Time)
Activity date :datatype( Date/Time)
My query:
List<Event> eventList = [select WhatId, Subject, ActivityDate, StartDateTime, EndDateTime from Event where WhatId= :accountId and ActivityDate <= StartDateTime between EndDateTime <= ActivityDate ];
Can anyone please help me with right query
How to fetch records between StartDateTime and EndDateTime including StartDateTime and EndDateTime records by comparing with Activity date
StartDateTime : datatype( Date/Time)
EndDateTime :datatype( Date/Time)
Activity date :datatype( Date/Time)
My query:
List<Event> eventList = [select WhatId, Subject, ActivityDate, StartDateTime, EndDateTime from Event where WhatId= :accountId and ActivityDate <= StartDateTime between EndDateTime <= ActivityDate ];
Can anyone please help me with right query
Please try below query.
Mark it as best, if it solves your issue.
I have tried your query but it is not working.