[TD_SYSFNLIB.] LAST_DAY ( date_timestamp_value ) Syntax ElementsTD_SYSFNLIB. Name of the database where the function is located. date_timestamp_value A date or timestamp argument.