lastday
Declaration
date function lastday(date D)
Description
lastday sets the date of date D to the first day of the next month and sets the time to 23:59:59:9999.
Example Stored Procedure
CREATE PROCEDURE test_lastday (d DATE)
RETURNS (result DATE) AS
BEGIN
result = lastday(d);
END!!
WISQL - calling the example stored procedure
execute procedure test_lastday ("1/2/96 1:2:3")
RESULT
====================
31-JAN-1996 23:59:59
execute procedure test_lastday ("12/21/96 11:2:3")
RESULT
====================
31-DEC-1996 23:59:59