× 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.



The following SQL sets up for and then defines a method\expression in the SELECT as an example which is similar to what I recall doing in REXX for effectively the same issue; i.e. zero-padding variations of M/D/Y to 0M/0D/0Y:

<code>
create table datechar (c char(8))
;
insert into datechar values
('1/5/9'), ('01/6/9'), ('2/5/09'), ('2/06/09')
,('3/5/9'), ('03/06/9'), ('03/7/09'),('4/06/09')
,('04/07/09')
;
select c, char(
replace( replace('0' concat c, '/', '/0'), '00', '0') , 08)
from datechar
;
....+....1....+...
C CHAR
1/5/9 01/05/09
01/6/9 01/06/09
2/5/09 02/05/09
2/06/09 02/06/09
3/5/9 03/05/09
03/06/9 03/06/09
03/7/09 03/07/09
4/06/09 04/06/09
04/07/09 04/07/09
******** End of data
</code>

Regards, Chuck

Buddy McClean wrote:
Wasn't quite sure of the search to use on the archives. I tried
'expanding dates' but that was unproductive.

If you have an incomming date of 4/24/09 or 11/5/09 , where Month
or Day is zero suppressed. Is there a short way to get them
accepted. Do they always have to be 2 pos for month and day?


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.