The day() function returns the numeric value of the day of the month in a specified date.
You can also determine the day value by using the IBM® Netezza® date_part() function.
int1 = day(date input);
The input value specifies the date.
select day('1996-2-29');
DAY
-----
29
(1 row)