On Oct 23, 3:31pm, Therm-O-Link wrote:
Is there an easy way to determine if today is the last day of the
> current month?
In the CI you can write a simple script such as:
# Determine if "today" is the last day of the month.
if hpmonth = 2 and hpdate = 29 or &
"!hpdate" = word("31,28,31,30,31,30,31,31,30,31,30,31",,hpmonth) then
# last day of leap year Feb or last day of any month
echo Today (!hpdate) is the last day of ![word(hpdatef,,2)]
endif
Regards,
Jeff Vance, CSY
--
|