title: Best Way to detect midnight and reset data
body: <p>I've been developing a web application Dashboard and I was wondering how to detect that is midnight in order to reset some arrays that contains datas from the previous day using jquery or momentjs.</p>