Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > decimal to date
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 8921 of 9520
Post > Topic >>

decimal to date

by "Frank Swarbrick" <Frank.Swarbrick@[EMAIL PROTECTED] > May 28, 2008 at 05:17 PM

I've probably asked this before, but I can't remember the answer!

One can use the DECIMAL function to convert a date to a decimal.
For instance
values decimal(current_date)
returns 20080528.

Is there an easy way to convert the decimal value back to a date?
I can't use DATE(<decimal-value>) because it expects the decimal value to
be
the number of days since Jan 1, 0001.

I'm sure I could write a function to do what I need, but I don't want to
waste my time if it already exists.

DB2/LUW 9.5.

Thanks,
Frank
 




 10 Posts in Topic:
decimal to date
"Frank Swarbrick&quo  2008-05-28 17:17:06 
Re: decimal to date
"The Boss" <  2008-05-29 02:04:22 
Re: decimal to date
Serge Rielau <srielau@  2008-05-28 21:35:06 
Re: decimal to date
jefftyzzer <jefftyzzer  2008-05-29 10:15:26 
Re: decimal to date
Serge Rielau <srielau@  2008-05-29 13:50:11 
Re: decimal to date
jefftyzzer <jefftyzzer  2008-05-30 11:57:52 
Re: decimal to date
"Frank Swarbrick&quo  2008-05-29 09:46:08 
Re: decimal to date
"Frank Swarbrick&quo  2008-05-29 10:14:17 
Re: decimal to date
"Frank Swarbrick&quo  2008-05-29 17:07:41 
Re: decimal to date
"Frank Swarbrick&quo  2008-05-30 15:07:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 20:19:55 CST 2008.