Hello,
I'm trying to convert a decimal (9,0) to date from a db2 table
20150105 would be 01/05/2015
20160202 would be 02/02/2015
YYYYMMDD
not sure why its setup as 9 versus 8.
Would these values have a 0 in front since its setup for 9?
The reason is I need to calculate date ranges and I cannot simply add/subtract a number on this value for beginning/end of month values.
for example subtract 2 days from 1/1/2016 would be 12/30/2015
I'm trying to convert a decimal (9,0) to date from a db2 table
20150105 would be 01/05/2015
20160202 would be 02/02/2015
YYYYMMDD
not sure why its setup as 9 versus 8.
Would these values have a 0 in front since its setup for 9?
The reason is I need to calculate date ranges and I cannot simply add/subtract a number on this value for beginning/end of month values.
for example subtract 2 days from 1/1/2016 would be 12/30/2015
Comment