>>>If you don't need two digit months ('4' vs. '04') you could use:
>>
>>I need the 04.
>
>Then use the first example. 'mm' returns the month in two digit format.
It doesn't work because I have to CAST to be able to concatenate the / (and the cast erase the 0).
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com