Skip to content

Commit 102fe2b

Browse files
authored
Merge pull request #164 from docusign/fix/list-envelopes-date-filter
Fix date format for list envelopes code example
2 parents 9842839 + 6f68ad6 commit 102fe2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/eSignature/examples/listEnvelopes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const listEnvelope = async (args) => {
3232
// a set of envelopeIds. Here we filter using a from_date.
3333
// Here we set the from_date to filter envelopes for the last month
3434
// Use ISO 8601 date format
35-
let options = { fromDate: moment().subtract(30, 'days').format() };
35+
let options = { fromDate: moment().subtract(30, 'days').format('YYYY-MM-DD') };
3636

3737
// Exceptions will be caught by the calling function
3838
//ds-snippet-start:eSign3Step2

0 commit comments

Comments
 (0)