HP3000-L Archives

October 1998, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Fri, 23 Oct 1998 16:24:10 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
Jim Phillips @ <[log in to unmask]> wrote:

>  Is there an easy way to determine if today is the last day of the
>  current month?

Jim,

Try checking to see if tomorrow is the first of some month.  Then today has to
be the last day
of the current month.  For example, using MPEX, do the following:

%setvar tomorrow (today+1)

%IF STR("!tomorrow",7,2) = "01" THEN
   Echo Today is the last day of the month!!
%ENDIF

Now, if you don't have MPEX, I guess you'll just have to try a similar approach
with the programming language of your choice. ;)

- John Hornberger

ATOM RSS1 RSS2