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:
John Zoltak <[log in to unmask]>
Reply To:
John Zoltak <[log in to unmask]>
Date:
Fri, 23 Oct 1998 15:49:28 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
Jim,

If you can add 1 day to the target date, you can see if the month
changes. Then you know that you have the last day of the month.

John Zoltak
North American Mfg Co

> -----Original Message-----
> From: Therm-O-Link [SMTP:[log in to unmask]]
> Sent: Friday, October 23, 1998 3:32 PM
> To:   [log in to unmask]
> Subject:      [HP3000-L] Determining The Last Day Of The Month
>
> Is there an easy way to determine if today is the last day of the
> current month?
>
> I know I can do it with some effort by coding a series of IF
> statements
> and checking what the current month is and if the current day is 31 or
>
> 30 or 29 or 28 (depending on the month and whether the current year is
>
> a leap year or not), but I'd like to do it in and easier (and
> hopefully)
> more efficient manner.
>
> Jim Phillips                            Manager of Information Systems
> E-Mail: [log in to unmask]      Therm-O-Link, Inc.
> Phone: (330) 527-2124                   P. O. Box 285
>   Fax: (330) 527-2123                   Garrettsville, Ohio  44231

ATOM RSS1 RSS2