Htaccess masking question

I’m developing a quote of the day website and using this in my index.php to redirect the user to a url specific to the current day:

<?php header('Location: /'.date("z")); ?>

That points the browser to a URL like this: (where 221 is the day of the year)

But I obviously don’t want to create 365 different folders for all of these days… so how do I do it?

Can I create a file like that masks to

Help!.. and THANKS for your help.

RewriteEngine On
RewriteRule ^/?([0-9]+)$ quote.php?day=$1 [L]

Thanks, Dan! That is absolutely spot on.