I'm grabbing the date from localtime(time) and now I want to print it, however, I need all values of the dates to be 2 digits, for example I would like to print 04/09/01 instead of 4/9/1.
Is there a simple elegant way to do this? I could do this using a hash, but, is there any other better way?
Thanks.