day

Declaration

integer function mer_day(date D)

Description

mer_day returns the day of the month as an integer. mer_day returns values from 1 to 31 depending upon the month.

Example Stored Procedure

CREATE PROCEDURE test_day (d DATE)

RETURNS (result INTEGER) AS

BEGIN

result = mer_day(d);

END!!

WISQL - calling the example stored procedure

execute procedure test_day("12/1/96 23:10:59")

RESULT

===========

1

execute procedure test_day("12/13/96 23:10:59")

RESULT

===========

13

execute procedure test_day("12/31/96 23:10:59")

RESULT

===========

31