I have tried using moment object with different format, but none seems to be working. Can someone please suggest what is the correct format in which ActivityDate should be supplied to SOAP api of task creation.

API Name: ​​​​​​​/services/data/v39.0/sobjects/Task

  • Salesforce uses YYYY-MM-DD for date fields. Mar 31, 2020 at 15:17
  • @DavidCheng I tried using the same, but it is not filling up due date Apr 1, 2020 at 6:11

1 Answer 1


The issue got resolved, correct format is unix timestamp with miliseconds.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .