You might be better of just using SQL's date functions instead of trying to get your JSP to do this task. Here is an example from PostgreSql. It is probably similiar for other databases: ~ postgres=# select current_date; date ------------ 2001-07-30 (1 row) postgres=# select current_date - 2; ?column? ------------ 2001-07-28 (1 row) postgres=# select current_date + 7; ?column? ------------ 2001-08-06 (1 row) --Mark -----Original Message----- From: Karen E Lee [mailto:[EMAIL PROTECTED]] Sent: Monday, July 30, 2001 1:03 PM To: [EMAIL PROTECTED] Subject: Date functions Hello. I am using the dbtags taglib in an application I'm working on. I need to take today's date and create a range from it (ie. two days before today and seven days after) for use in my sql statements. Are there any plans for a function in the Datetime taglib to take a java.util.Date() and subtract and add days, etc? -- Karen E. Lee Open Systems Group, Northeast Regional Data Center University of Florida [EMAIL PROTECTED]