You need to sign in to do that
Don't have an account?
Arun_Pali
Filtering using ActivityDateTime
Hello there,
I am trying to write an SOQL to filter events whose activity datetime is greater than the current date time. I am unable to get the current datetime format to yyyy-mm-dd Taa:bb:cc:Z format using Apex API. Any idea how can I convert current datetime format to yyyy-mm-dd Taa:bb:cc:Z using Apex API. Your help would be greatly appreciated.
Thanks.
I am trying to write an SOQL to filter events whose activity datetime is greater than the current date time. I am unable to get the current datetime format to yyyy-mm-dd Taa:bb:cc:Z format using Apex API. Any idea how can I convert current datetime format to yyyy-mm-dd Taa:bb:cc:Z using Apex API. Your help would be greatly appreciated.
Thanks.
datetime n = dateTime.now();
List e = [select id, subject from event where activityDateTime > :n];