[EMAIL PROTECTED] wrote on 03-06-2005 12.54.59:
> 
> Now can we scrunch this down?
> Input Date ; *format yyyymmdd
> NextMonth = Oconv(Iconv(date[1,6]:'15','D') + 30,'D2')
> I.LastDayPreviousMonth = Iconv(NextMonth[1,2]:'01':NextMonth[5,2],'D') + 
1


input oDate ; *format yyyymmdd
iDate = iconv(oDate,'dymd')
loop until oconv(iDate+1,'dd) = 1 do iDate += 1 repeat
lastDay = oconv(iDate,'dymd')

Not sure if it's worth bragging about - but mine's smaller (146 v. 161 
bytes).
S


**********************************************************************
This email message and any files transmitted with it are confidential
and intended solely for the use of addressed recipient(s). If you have 
received this email in error please notify the Spotless IS Support Centre (61 3 
9269 7555) immediately who will advise further action.

This footnote also confirms that this email message has been scanned
for the presence of computer viruses.
**********************************************************************
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to