1 Antwort

Hi,
Please refer below link for more Date methods.https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_datetime.htmHope this helps you!If this helps you please mark it as solved.Thanks and RegardsDatetime myDateTime = DateTime.parse('10/14/2011 11:46 AM');
String dateInStringString = myDateTime.format('MM/dd/yyyy');
system.debug('⌗⌗dateInStringString - '+dateInStringString);
Sandhya