I know this is very simple, but the simplest things we usually forget, so I thought I would just write this and keep it for reference later and hope someone out there would find it useful too.
DECLARE @fromDate datetime;
DeCLARE @toDate datetime;
— select payroll cycle
SELECT StartDate into @fromDate, EndDate into @toDate,
WHERE RequestID = 2555