I need my array to automatically clear itself at 2 AM, but at the moment with this code it only clears itself if I manually check it at exactly 2 am. Help appreciated
Datetime todaysDate = DateTime.Now
if (todaysDate.Hour == 02 && todaysDate.Minute == 00)
{
Array.Clear(myArray, 0, myArray.Length);
}