function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RadhaKrishanRadhaKrishan 

Date Handling in SalesForce.com

Hi,

Im new to SalesForce.com, so please need ur advice:

Im trying to create a Event in SalesForce.com passing dates thru API.

1. For Instance Im passing 04 December 2007 5PM
2. Then its creating event as: 04 December 2007 11:30AM

So means exactly 5:30 hours behind. (India is 5:30 hours behind the GMT )

Now if I check the organization Timezone its GMT-8:00 (Pacific Standard Time)

So what I want is : When I pass this "04 December 2007 5PM " then Event should be created for this time "04 December 2007 5PM "

Can anyone please advice.

Regards


SriniKSriniK

Hi, I am facing the same problem. Any help on this would be great.

Thanks

Srinik

David GorslineDavid Gorsline
Convert your desired time to UTC, then format it appropriately. For instance, to pass the current date and time (in C#), use the expression:

DateTime.Now.ToUniversalTime().ToString("s")

Format string "u" should produce equivalent results.