Note that the client system clock can be set to any time and time zone, so if you care about fraud or security, you must not depend on the client system for anything important.
Otherwise, you can compare Date objects directly, so to see if a date is before, on or after a specific date, use date objects, e.g.
// Create Dates for specific local dates
var startDate = new Date(2016,3,1);
var endDate = new Date(2016,3,30);
// Create a Date for the current local time
var now = new Date();
// Do some comparisons
if (now > startDate) {
show(now + ' is after ' + startDate);
}
if (now < endDate) {
show(now + ' is before ' + endDate);
}
show('Today is ' + (now.setHours(0,0,0,0) == endDate? '' : 'not ') + 'the last day');
function show(s) {
document.write('<br>' + s);
}
So you can send the parameters for the start and end dates, then use the client system to generate a date for the current time (noting the above caveat that this is not reliable). Then just compare the dates using less than, greater than and equals operators.