title: how to automatically run a java program every day at midnight when time changes from PM to Am
body: <p>I want to run my program everyday at midnight when time changes from am to pm in between two dates, for example(from today date i.e 22/01/2015 to 25/01/2015).</p>