month_of_year

Declaration

cstring function month_of_year(date D)

Description

month_of_year returns the name of the month for date D.

Example Stored Procedure

CREATE PROCEDURE test_month_of_year (d DATE)

RETURNS (result char(20)) AS

BEGIN

result = month_of_year(d);

END!!

WISQL -
calling the example stored procedure

execute procedure test_month_of_year("1/1/96");

RESULT

====================

January

execute procedure test_month_of_year("12/1/96");

RESULT

====================

December