Hello everyone,
i want to set that every 10th and 25th of the month is the cut-off and it will display the remaining number of days before the cut-off.
I was able to get the numbers of day in my code unfortunately I can't figure out on how to set the 10th & 25th hope you can help me out. thanks
i want to set that every 10th and 25th of the month is the cut-off and it will display the remaining number of days before the cut-off.
I was able to get the numbers of day in my code unfortunately I can't figure out on how to set the 10th & 25th hope you can help me out. thanks
CODE:
on mouseUp put the short date into tConvertDate put tConvertDate into fld "CurrentDate" put tConvertDate into tStart convert tConvertDate to dateitems add 15 to item 3 of tConvertDate convert tConvertDate to short date put tConvertDate into tEnd put tEnd into fld "date2" put daysBetween(tStart, tEnd) into tDays answer information "There are " & tDays & " days between " & tStart & " and " & tEndend mouseUpfunction daysBetween pDate1, pDate2 convert pDate1 from short date to dateitems convert pDate2 from short date to dateitems put 12 into item 4 of pDate1 put 12 into item 4 of pDate2 repeat with i = 5 to 7 put 0 into item i of pDate1 put 0 into item i of pDate2 end repeat convert pDate1 from dateItems to seconds convert pDate2 from dateItems to seconds put abs(pDate1 - pDate2) into tDiff return tDiff / (60 * 60 * 24)end daysBetween
Statistics: Posted by lemodizon — Sun May 26, 2024 3:10 pm