I'm trying to store the date as a variable in the format dd-mm-yy. (Similar to date '+%m-%d-%y' in UNIX.)
Unfortunately when i use the localtime module it doesn't return the single digit days and months with a preceding zero.
(1-3-05 instead of 01-03-05) Is there a simple workaround for this? or should I use a different module?
(I suppose that using a system call would be a last resort.)
Unfortunately when i use the localtime module it doesn't return the single digit days and months with a preceding zero.
(1-3-05 instead of 01-03-05) Is there a simple workaround for this? or should I use a different module?
(I suppose that using a system call would be a last resort.)