{{tag>category:"OpenInsight 32-bit" author:"Roberto Righini" author:"Mike Ruane" author:"Donald Bakke"}} [[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]] ==== Oconv DateTime (OpenInsight 32-bit) ==== === At 07 JUN 2023 07:24:08AM Roberto Righini wrote: === Hi, I am implementing the OAI-PMH protocol for our system. One of the response fields in the XML is the and needs the following date format: YYYY-MM-DDThh:mm:ssZ . Would it be possible to extract this format via Oconv in a single operation, or would it be better to compose it via various transformations? ---- === At 07 JUN 2023 07:51AM Mike Ruane wrote: === Roberto- I don't believe we have this format built into the product - you'll need to create it yourself. Mike ---- === At 07 JUN 2023 08:19AM Roberto Righini wrote: === Hi Mike, thank you for your quick reply. OK, then I will 'build it' as needed! Greetings ---- === At 07 JUN 2023 08:23AM Roberto Righini wrote: === Hi Mike, thank you for your quick reply. OK, then I will 'build it' as needed! Greetings ---- === At 07 JUN 2023 10:24AM Donald Bakke wrote: === Hi, I am implementing the OAI-PMH protocol for our system. One of the response fields in the XML is the and needs the following date format: YYYY-MM-DDThh:mm:ssZ . Would it be possible to extract this format via Oconv in a single operation, or would it be better to compose it via various transformations? Roberto - If you need to rollout your own solution as Mike suggests, you might want to consider using the DateTime [url=https://wiki.srpcs.com/display/SRPUtilities/SRP_DateTime+OConv]SRP_DateTime OCONV UDC[/url] which is a part of our free [url=https://products.srpcs.com/srp-utilities/]SRP Utilities[/url] library. We have a nearly identical use case in a few of our supported applications. Here is what our format pattern looks like: [SRP_DATETIME,YYYY-MM-DD'T'hh:mm:ss'Z'] [url=mailto:dbakke@srpcs.com]Don Bakke[/url] [url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url] [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=0252F5D9C3077347AA811F0823762452|View this thread on the Works forum...]]