JotaPey Posted December 20, 2018 Report Share Posted December 20, 2018 I need to output a time/date stamp to a DTI in the format dd-mmm-yyyy hh:nn:ss. I am able to output the time/date stamp using the "Date Time to UTC" function, but this outputs in a numeric format, which I believe is Unix Time. Is there a way to then convert that format to my desired format? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted December 20, 2018 MVP 2022 Report Share Posted December 20, 2018 Use this UDFB: RTC to ASCII.ulle 1 Quote Link to comment Share on other sites More sharing options...
JotaPey Posted December 21, 2018 Author Report Share Posted December 21, 2018 Thanks for the UDFB, Flex727. So I'm struggling to understand how I incorporate this into my logic. I called the function in my main function and entered my UTC in the A field, this worked as I was able to confirm in online mode that the UDFB parsed out the hour, minutes, seconds, days, etc. I assigned an ASCII tag to the the B Field of the Call Function, but there was no resultant output in that field. I'm wondering if I need to do something with the logic in the last rung (Region2.Rung8) the comments say "Placing the result" Thanks for any help you can provide! Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted December 21, 2018 MVP 2022 Report Share Posted December 21, 2018 No, the UDFB is calling the RTC. All you want in the A field is the number corresponding to the format you want (see the comment at the top of the UDFB). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.