Select Date Range based on current date

I have an xpage application.

In this application I have a “Settings” document. In the document there is a field that has a list of pay periods. For example:

12/27/10 - 1/09/10

1/10/10 - 1/23/10 etc etc

The formatting of these can change as needed to simplify coding.

I would like to have the pay period default to the correct pay period based upon the current date.

Any suggestions on how to do this?

Subject: Lotuscript?

Not sure if this will help (I haven’t worked on xpages). I have a table (actually documents in a view) with pay cycle start and end dates. I use Lotuscript to navigate through the sorted view until I get to the pay cycle that encompasses the date.