I need to have a Date field send in an apex API callout in the format that matches this format "2019-05-28T19:40:36+00:00"
I currently have the following:
Datetime startDate = datetime.newInstance(intCan.Training_Class_Start_Date__c.year(),intCan.Training_Class_Start_Date__c.month(),intCan.Training_Class_Start_Date__c.day());
String startDate2 = startDate.formatGmt('yyyy-MM-dd\'T\'HH:mm:ss:SSSZ');
System.debug('StartDate: '+startDate2);
However this produces StartDate: 2020-07-27T04:00:00:000+0000