Skip to content

Commit 0274df4

Browse files
committed
Fixing date format in eg003_list_envelopes.py
1 parent 3590731 commit 0274df4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/eSignature/examples/eg003_list_envelopes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def worker(args):
3636
# Here we set the from_date to filter envelopes for the last month
3737
# Use ISO 8601 date format
3838
# 1. Call the envelope status change method to list the envelopes
39-
from_date = (datetime.utcnow() - timedelta(days=30)).isoformat()
39+
from_date = (datetime.utcnow() - timedelta(days=30)).strftime('%Y-%m-%d')
4040
results = envelope_api.list_status_changes(account_id=args["account_id"], from_date=from_date)
4141
#ds-snippet-end:eSign3Step2
4242

0 commit comments

Comments
 (0)