You need to sign in to do that
Don't have an account?

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.
Thanks!!
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.
Thanks!!
Here are some blogs which will be helpful.
http://salesforce.stackexchange.com/questions/15098/how-to-convert-a-text-to-datetime
http://salesforcesource.blogspot.ae/2008/11/utility-apex-class-to-convert-all-types.html
http://stackoverflow.com/questions/18039145/string-to-datetime-conversion-in-salesforce
http://support.pervasive.com/t5/Integration-Forums/Salesforce-DateTime-Conversion/td-p/2721