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
Swamy P R NSwamy P R N 

Convert string to datetime which is in GMT

Hello Everyone,

I have string which is similar to datetime format but it is not matched with salesforce datetime format. 
String :: 2015-05-21T02:02:40Z
Salesforce Date Time format:: 2015-05-21T02:02:40.000+0000.

Please suggest me that how can i convert above string to salesforce date time format. It is in GMT.