Bill,
See:
http://www.think400.dk/downloads.htm ;
Page down until you find:
Alan Campin - IDATE - iSeries Date Conversion
Then it is super easy to deal with those legacy date formats.
Hope that helps,
Mark S. Waterbury
On Wednesday, May 3, 2023 at 04:59:51 PM EDT, Howie, Bill <bhowie@xxxxxxxxxxxxxxxx> wrote:
Hello all,
I have what is surely a simple question but I can't seem to find an answer to it. I have a work file that I've created that contains the output of the DSPOBJD command for a particular library. This file has the field ODUDAT, which is the date last used field. It's a character field in the MMDDYY format. I'm using Run SQL Scripts in ACS to then query this file, but I'd like to convert this date to YYYYMMDD format so that I can order the query results by the most recent date. The only way I can find that comes close to working so far is just to substring the ODUDAT field into the month, day, and year portions and then play with it that way. I'm sure there's a more elegant method that will just yield a YYYYMMDD field. Thoughts?
Any ideas on this would be greatly appreciated. Thanks!
Bill Howie[Related image]<
https://www.hc-companies.com/>
Senior ERP Programmer/Analyst
Office: 330.486.5818 | Cell: 330.486.5818 | Toll Free: 800.225.7712
2450 Edison Blvd., Suite 3, Twinsburg, OH 44087
hc-companies.com<
https://www.hc-companies.com/>
Leader in Horticultural Containers
[cid:e0b218dc-8ff8-41fd-81d2-b4ddf650420b]<
https://www.linkedin.com/company/the-hc-companies> [cid:5a6b8cad-48ce-4933-8f87-19d7d96844ba] <
https://www.facebook.com/HCCompanies/> [cid:151d0fd6-bc45-4922-8e5f-cf1f42b0de8f] <
https://www.instagram.com/hccompanies/> [cid:19fc1ef7-7bff-4cae-87af-ec061a1c8770] <
https://twitter.com/hc_companies>
Disclaimer
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more visit the Mimecast website.
As an Amazon Associate we earn from qualifying purchases.