I'm working on some SNMP pollers for tripplite ups systems. I'm trying to build a table of the Battery Replacement and Battery Test dates. They show up in the following format: 20100231 . I would like it to say instead 2010-02-31 or preferably 02-31-2010. I'm pretty terrible with regular expression, but I attempted to make a transform with the following formula:
parse((/([0-9]{4})([0-9]{2})([0-9]{2})/\2-\3-\1/), {TLUPSConfigBattReplDate})
Could someone look at it and give me a hand with writing it?