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
sfdc@isha.ax1814sfdc@isha.ax1814 

date and time function

Hi,

 

how can we convert from E.g. June 24, 2002 5:12:16.789 PM, Australian EST is: to 20022406171216789000+60

 

can anybody help on this

izayizay

Hi,

 

You can use the DateTime instance methods to do this.

 

Ex.

 

myDateString = String.valueOf(mycase.CloseDate.yearGmt())+String.valueOf(mycase.CloseDate.monthGmt())+String.valueOf(mycase.CloseDate.dayGmt())...

 

Hope this helps

sfdc@isha.ax1814sfdc@isha.ax1814

Thank you somuch iZay for your  reply.

 

can u give me detail code on this.iam very new to coding...