DB2 Date Time Functions
https://www.ibm.com/developerworks/data/library/techarticle/0211yip/0211yip3.html One of the most important database design decisions you will make – for DB2 or any relational DBMS – is to use the proper data types for your columns when building tables. The data type that you choose for each column should be the one that most closely matches the domain of values that the column can be used to store. Indeed, perhaps the most important design choice is to actually use the date/time data types that are available to you; for DB2 this is DATE, TIME, and TIMESTAMP. The ability to store dates as a native DB2 data type is a great advantage. If you need to store date information in your DB2 tables you should favor using the DATE data type instead of forcing a date into some other data type (such as CHAR or DECIMAL). Many a database design has been ruined (in my opinion) because somebody decided to store date data in a CHAR column. When DB2 knows that the data should be a DATE or a TIM...