detect next day

BlitzMax Forums/BlitzMax Programming/detect next day

I am working on a program for work and I want it to save files every day, how would I go about detecting if its a new day?