Artisan SVG > Script (script) (file-format-javascript)

Filter a list of objects by date range

Snippet
Universal
Intermediate

Snippets are pieces of workflows. You can copy and paste them directly into any Tray workflow.

New to snippets? Watch this video

For more details please see our Snippet Documentation

About this Snippet
Copy

Pass this script a list of objects with a date property in them along with a start and/or end date and it will return each item from the list where the date property you specify falls in between the specified date range. The snippet comes with an extra script step that produces dummy data so you can test how the script works easily.

See it in action
Copy