It would also mess up the knuckle method too, I couldn't never remember the 
rhyme, but the knuckle method
Always came through.

http://lifehacker.com/232828/macgyver-tip-use-your-knuckles-to-remember-each-months-days

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Robert Houben
Sent: Monday, December 05, 2011 3:30 PM
To: U2 Users List
Subject: Re: [U2] End of Month date routine

But that would break the rhyme... :o

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of George Gallen
Sent: December-05-11 12:26 PM
To: U2 Users List
Subject: Re: [U2] End of Month date routine

Damn February...We need to pull a day from two of the 31 months and give them 
to February So it will have 30 or 31 days, and almost be like a normal month 
(all will have 30 or 31 days).

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Dave Laansma
Sent: Monday, December 05, 2011 3:21 PM
To: U2 Users List
Subject: Re: [U2] End of Month date routine

Ditto.

Sincerely,
David Laansma
IT Manager
Hubbard Supply Co.
Direct: 810-342-7143
Office: 810-234-8681
Fax: 810-234-6142
www.hubbardsupply.com
"Delivering Products, Services and Innovative Solutions"


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of George Gallen
Sent: Monday, December 05, 2011 3:10 PM
To: U2 Users List
Subject: Re: [U2] End of Month date routine

Haven't checked it, but what happens on 01/31 by adding 31, it should take you 
March, backing up
  Will give you 02/xx (28 or 29)?

George

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Wols Lists
Sent: Monday, December 05, 2011 3:05 PM
To: [email protected]
Subject: Re: [U2] End of Month date routine

On 05/12/11 19:03, Wjhonson wrote:
>
> Does someone have a routine that, no matter what day you run it,
returns the End of Month Date ?
> (Assume the end of month date, is the calendar end of month date not
> some screwy business date)

Hmmm... no-one seems to have done my approach ...

TODAY = @DATE
THIS.MONTH.O = OCONV (TODAY, "DMY") ;* strip day off NEXT.MONTH.I = ICONV( 
THIS.MONTH.O, "D") + 31 ;* random day next month NEXT.MONTH.O = OCONV( 
NEXT.MONTH.I, "DMY") ;* strip day off LAST.DAY.I = ICONV( NEXT.MONTH.O, "D") - 
1 ;* subract one day

If you don't have a day in your i/oconv it defaults to 1, so the logic works. 
Unfortunately you can't combine the first three lines because there's no number 
you can pick that will guarantee to land you in next month whatever today's 
date :-(

Cheers,
Wol
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to