Re: Match Question
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jan 20, 2007
- 530 views
don cole wrote: > > Thanks Pete, > > BTW get_short_year() simply converts 10/10/2007 to 10/10/07 which I think > looks better especially in a list. > OK, I thought as much. Personally, I would find it much easier to write a routine such as:
date_as_short_year(integer year, integer month, integer day) year=remainder(year,100)
than your (admittedly existing)
get_short_year(sequence ds)
Admittedly I thought you might be scanning for '\' or counting backwards, but I guess (untested!) l=length(ds); return ds[1..l-4]&ds[l-1..l] would do just as well. As for "looking better", I always, always do dates in %02d/%02d.. format. Regards, Pete