none
How to detect day is changed at midnight? RRS feed

  • Question

  • I want to make my program detect the point of time at midnight(day is changed).

    how can I do this?

    Thursday, December 14, 2017 7:55 PM

Answers

  • Basically you calculate the amount of time until midnight then set a timer for that interval.  You can find a bunch of examples (and a bunch of different ways to accomplish that) here.
    • Marked as answer by Jeff0803 Thursday, December 14, 2017 11:10 PM
    Thursday, December 14, 2017 10:50 PM