You can use the +%s option in date to convert the start/finish dates to epoch time. You supply the dates using the -d option.
Then, you retrieve the current date using +%s again and compare using standard integer comparison, like this:
start=$(date +%s -d '12/24/2020') finish=$(date +%s -d '06/02/2021') now=$(date +%s) if [ $now -ge $start ] && [ $now -lt $finish ] then echo "Do something" else echo "Skip" fi
Edit: For the finish date, its necessary to use the day after your intended finishing date and compare using -lt. This is because date will return the timestamp for the start of the specified date. So doing this, you end up having the comparison succeed until midnight on 06/01/2021. Thanks to @gordon-davisson for pointing this out.
datecommand output year, month, day, i.e., 20201224, then you can just use normal string compare for a range check.