> ... where to_days(dateCreated)>30 the to_days function converts a date to the number of days since year 0 what you want is where to_days(current_date) - to_days(dateCreated) > 30 rudy