I could really use some help here. we reciently had an instance where an operator ran the machine a few days past its calibration expiration (OOPS). So now i have been tasked to remove all operator input/error and add code to all programs that checks the calibration expiration date agains the current system date and 1, popup a warning @ 30 days left (to remind someone to call for calibtation) and 2 to popup a full screen prompt when the machine is expired and jump to end of program (not run). i cannot figure out an fairly easy way to calculate the days between today and the exp_date. is there a simple way that maybe i cannot find like in excel "days(today, 2/12/2021)" something that can be put into every program or call it as a subroutine. My mind keeps going in 10 different directions. right now I have a cluster of code and i cant think of a clean, easy way to do this.
appreciate any help.
appreciate any help.
Comment