Drupal has a standard script to do this, see    
http://drupal.org/project/issues/date?status=All
for instance. You might be able to pick apart the source code to adapt
it to your needs.

Reply via email to