In MaskEdBox, I have the following code:

Code:
medDOB.Mask = "##/##/##"
medDOB.Text = Format(rstPlayer!sgcusbdate, "ddddd")
Now if the date part is less than 10, then it display only 1 integer, but the Mask expect 2 integer. So error occur.

How can I make sure that the datepart is always 2 integers? (Note: I must use dateformat "ddddd" ie. vbshortdate since this is an international app.)

Thanks.