By the way, you can also completely eliminate the dash (or slash, etc.) delimiters:

OCONV( "16507"   , "DYMD[4'',2'',2]" )  -->  "20130311"
ICONV( "20130311", "DYMD[4'',2'',2]" )  -->  "16507"

Notice that ICONV'ing the OCONV'd or OCONV'ing the ICONVd result gets you bat to where you started. That makes it particularly useful in dict conversion fields.


I learned that on this list, but I do not remember from whom. There are too many people I've learned from.

cds


On 11 March 2013 13:56, Jeff Schasny <[email protected]> wrote:
Has anyone come up with an OCONV string that will product an ISO standard date (YYYY-MM-DD)? After a vendor insisted on this last week I ended up creating a subroutine called by an I descriptor but it seems like there should be an easier way. A quick trip through the Universe Basic manual, my old Prime Info-Basic manual, and Pick Basic: A programmer's guide didn't shed any light.

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to