The following SQL statement: SELECT TD_YEAR_END(TIMESTAMP'2012-01-15 10:00:00','ISO'); returns 2012-12-30 23:59:59.