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
udayarangareddy mekalaudayarangareddy mekala 

DEV#321

Hi
how to convert the STRING into MM/DD/YYYY through trigger.


Thanks
RANGA
Best Answer chosen by udayarangareddy mekala
Keshab AcharyaKeshab Acharya
Datetime yourDate = (Datetime)yourstringdate;
String dateOutput = yourDate.format('DD/MM/YYYY');

include the above code snippet in your trigger.

All Answers

Keshab AcharyaKeshab Acharya
Datetime yourDate = (Datetime)yourstringdate;
String dateOutput = yourDate.format('DD/MM/YYYY');

include the above code snippet in your trigger.
This was selected as the best answer
udayarangareddy mekalaudayarangareddy mekala
Thanks acharya