If you need leading zeroes immediately, you can "assemble" the datestamp you want and have them added:
Write '[Blue] The current date is {DATEYEAR}-{EXP: IIF({DATEMONTHNUMERIC} < 10,0,'')}{DATEMONTHNUMERIC}-{EXP: IIF({DATEDAY} < 10,0,'')}{DATEDAY}' to log
The above will print the current date in an ISO 8601 compliant format, which includes leading zeroes.