If your application is running on Unix, cronjob would be the option for you, if your application is running in Windows, you can schedule the job by doing the following, go to Control panel --> Scheduled Tasks --> Add Scheduled Task and add a task to shut down your server(web server or application server) for the specified time and schedule one more job to restart the server after some time, mean time your application will not be available to the users.
Hope this helps