× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



See the "fun with dates in SQL" page that I just posted. Look for custom
editing, toward the bottom, I think.

http://www.ibm.com/developerworks/data/library/techarticle/0211yip/0211yip3.
html

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"All progress is based upon a universal innate desire on the part of every
organism to live beyond its income."
-- Samuel Butler


I am converting a date field to a floating field - YYYY-MM-DD to a
floating
field.



The SQL command I am using is FLOAT or DOUBLE and I convert the date
field
as follows:

FLOAT(CHAR( (YEAR(DATE_FIELD) || MONTH(DATE_FIELD) ||
DAY(DATE_FIELD) ))



The system (V5R3) returns the day portion with the leading zero
suppressed
that is 2001-05-09 is returned as 2001059.00000000. It should return
20010509.00000000.



Can anyone help with this problem?



The problem I have is that I cannot convert it back to a date field in
a
later process.



Does anyone have a solution.



TIA



Darryl Freinkel

Assignment 400 Group, Inc.

Tel: 770.321.8562 ext 111 | Fax 770.321.8562 | 2247 La Salle Dr,
Marietta
GA, 30062, USA | PO Box 72556, Marietta, GA 30007-2556



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.