Yes I have returned items 15 minutes before closing.
A thorough answer has already been issued. I have nothing to add.
You can do returns at any time as long as you have a receipt. After 30 days it becomes store credit. If you happened to lose your receipt you can only get what it is worth in the store and the form of store credit.
I believe you can do returns until closing.
Thanks! Your answer is awaiting moderation.