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? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted December 20, 2018 MVP 2023 Report Share Posted December 20, 2018 Use this UDFB: RTC to ASCII.ulle 1 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! Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted December 21, 2018 MVP 2023 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). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now