×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Wait? What? I'm missing this. Isn't the first day of the year ALWAYS
January 1st?
Or are you trying to calculate what DAY (mon, tue, wed, etc..) the 1st fell
on for that year?
If not, I don't understand why you need a calculation at all. Why not
just concatenate the year onto 01.01.?
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of David FOXWELL
Sent: Friday, March 12, 2010 7:22 AM
To: RPG programming on the IBM i / System i
Subject: 1st day of any year
Hi,
I need the first day of the year which will be passed a string of length 4.
I think this will work :
MyDate = %DATE ( '01.01.' + yearPassed : *EUR );
But I will still need to test in case yearPassed isn't right.
Is there an easier way or less messy one?
Thanks
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.