Take the 2-minute tour ×  In my msbuild script I'm creating a
zip file with year/month/day in the zip filename, but month and
day are always written with no leading zero.  Is there a way to
add leading zero to my zip filename?    <Output
TaskParameter="Year" PropertyName="Year" />   <Output
TaskParameter="Month" PropertyName="Month" />   <Output
TaskParameter="Day" PropertyName="Day" />   And the result is:
'Application_2010122.zip' (with no leading zero for january, as
you can see)  share|improve this question  4 Answers 4  up vote
4 down vote accepted  You could use the MSBuild extension pack a
la:   Or use the format param to the Time task from community
tasks [which you appear to be using]   share|improve this answer
Thank you... I already found the later link and used it. – 
Goran Jan 22 '10 at 11:56 Good stuff. BTW Always a good idea to
mention which task libs you're using / open to using when asking
questions of this ilk. –  Ruben Bartelink Jan 22 '10 at 12:01 It
would be good if this accepted answer a