|
Raj: Thanks for the reply. I came up with this also, but thought it was alot of trouble to do and should be a better way. However, the technique does work. Thanks for the help. Carl Carl Galgano EDI Consulting Services, Inc. 540 Powder Springs Street Suite C19 Marietta, GA 30064 770-422-2995 mailto: cgalgano@ediconsulting.com http://www.ediconsulting.com EDI, Communications and AS400 Technical Consulting -----Original Message----- From: Rajan.Srinivasan@Allfun.com <Rajan.Srinivasan@Allfun.com> To: MIDRANGE-L@midrange.com <MIDRANGE-L@midrange.com> Date: Tuesday, February 09, 1999 9:08 AM Subject: Re: Date conversion technique in QUERY >Carl, > I know one round way to do that. > >On defining the Result field. > > >CHARD DIGITS(YYMMDD) - This will >convert the field into Alphanumeric > >TYY SUBSTR(CHARD, 1, 2) > >TMM SUBSTR(CHARD, 3, 2) > >TDD SUBSTR(CHARD, 5, 2) > >RESULT TMM || TDD || TYY or TMM || '/' >|| TDD '/' || TYY > > >- Raj > > > > > > > >"Carl Galgano" <cgalgano@ediconsulting.com> on 02-09-99 06:43:33 AM > >Please respond to MIDRANGE-L@midrange.com > >To: "Midrange List" <MIDRANGE-L@midrange.com> >cc: (bcc: Rajan Srinivasan/Servicing/SuperiorBank) >Subject: Date conversion technique in QUERY > > > > >anyone have a quick and dirty way to convert a date (6,0) in a YYMMDD >format >to a MMDDYY format for printing in a Query? I know I can multiply by >100.0001, however Query thinks it knows better and won't let you chop off >the left most 2 significant digits, which makes this technique not work. >(I >get the dreaded +++++++++ as the output for this field). >Surely someone has solved this little problem. >TIA, >Carl >Carl Galgano >EDI Consulting Services, Inc. >540 Powder Springs Street >Suite C19 >Marietta, GA 30064 >770-422-2995 >mailto: cgalgano@ediconsulting.com >http://www.ediconsulting.com >EDI, Communications and AS400 Technical Consulting > > > >BEGIN:VCARD >VERSION:2.1 >N:Galgano;Carl;J. >FN:Carl J. Galgano >ORG:EDI Consulting Services, Inc. >TEL;WORK;VOICE:770-422-2995 >TEL;PAGER;VOICE:770-839-8168 >TEL;WORK;FAX:770-425-8391 >ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;540 Powder Springs Street=0D=0ASuite >C19;Marietta;GA;30064 >LABEL;WORK;ENCODING=QUOTED-PRINTABLE:540 Powder Springs Street=0D=0ASuite >C19=0D=0AMarietta, GA 30064 >URL: >URL:http://www.ediconsulting.com >EMAIL;PREF;INTERNET:cgalgano@ediconsulting.com >REV:19990209T114331Z >END:VCARD > > > > > > > >+--- >| This is the Midrange System Mailing List! >| To submit a new message, send your mail to MIDRANGE-L@midrange.com. >| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. >| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. >| Questions should be directed to the list owner/operator: david@midrange.com >+---
BEGIN:VCARD VERSION:2.1 N:Galgano;Carl;J. FN:Carl J. Galgano ORG:EDI Consulting Services, Inc. TEL;WORK;VOICE:770-422-2995 TEL;PAGER;VOICE:770-839-8168 TEL;WORK;FAX:770-425-8391 ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;540 Powder Springs Street=0D=0ASuite C19;Marietta;GA;30064 LABEL;WORK;ENCODING=QUOTED-PRINTABLE:540 Powder Springs Street=0D=0ASuite C19=0D=0AMarietta, GA 30064 URL: URL:http://www.ediconsulting.com EMAIL;PREF;INTERNET:cgalgano@ediconsulting.com REV:19990209T150450Z END:VCARD
As an Amazon Associate we earn from qualifying purchases.
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.