How can I convert a 15 char Id value into an 18 char Id value?

How can I convert a 15 char Id value into an 18 char Id value?

 salesforce.stackexchange.com/…

What is the formula for calculating the additional 3 characters needed to append to a 15 char Id in order to form its equivalent 18 char Id? I have a situation where I need to compare 15 char Ids

Open link

 

 

Comments