You can use the following reusable script with the JavaScript component to retrieve records that were deleted from Salesforce between specified dates: https://www.cozyroc.com/ssis/script-salesforce-get-deleted-source
To retrieve records that have been updated in Salesforce between specified dates, use the following reusable script with the JavaScript component: https://www.cozyroc.com/ssis/script-salesforce-get-updated-source
Both scripts allow you to enter the object and the start date and end date of the records you want to pull data from. The dates may be specified in variables.