The lifetime of the page

Hi
How to add the expiration date of the page, after which the page will be hidden or moved to the specified navigation section?
I think I need a date field and a macro or velocity code…