Yup.

Search the forums for the date math routines to convert the date into an internal number. You can use normal math on the date (e.g. add / subtract 45 days) and perform numeric comparisons with the results.

If you have more questions after you've taken a look at these then post again giving more detail about what you are trying to achieve.