• Amsyara A
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi,
I am calling an API and in respose it returns me JSON data. In this i am abstracting a field value which is in ISO format : 2013-12-14T09:49:25-05:00

I need to store this value on an SFDC Object record. please let me know the formating for this.

I am doing this (DateTime.valueOf(responseMap.get('last_reported_at'))).format('YYYY-MM-DDThh:mm:ss-hh:mm') .

Let me know ulternate for this. It will be good if we can do using DateTime format method of salesforce.

I am getting this error : Invalid date/time: 2014-08-25T15:18:41.938Z