Sorry, I made an false assumption about the Format Text node. It doesn’t have a comprehensive formatting capability for ints and floats as I assumed it would. Hopefully someone else knows the answer on this.
I set up something similar to what you have only using the Len Node. Since this creates an overly complex set of statements, there may be something you could by putting the leading zero add on into a function. All that would do is clean up the code but not improve it in a meaningful way. The function would take in a 1 or 2 digit int and return a 2 digit string. That doesn’t really buy you anything, you’d still need 5 calls to it for each value (mm, dd, hh, mm, ss).
Edit: I dummied the other concept up just to see if it could be fewer nodes than your method. Here it is, and no, it’s not better, just different.