Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: RE: SUBSTR for Date functions

$
0
0
Author: Marso
Subject: Reply to: SUBSTR for Date functions
Posted: Thu Apr 06, 2017 6:47 pm (GMT 5.5)

You already have date functions like:
- DAY(mydatefield)
- MONTH(mydatefield)
- YEAR(mydatefield)
What more do you need ??

Note: if SUBSTR(join_date,1,10) worked, it would return the 10 first chars of the date, which is... the date itself.


Viewing all articles
Browse latest Browse all 8500

Trending Articles