Datepicker: Problem with array (input requires yyyy-m-d, but data comes in yyyy-mm-dd digits)

Datepicker: Problem with array (input requires yyyy-m-d, but data comes in yyyy-mm-dd digits)

Hi,

i have a datepicker in which I highlight specific dates by an array.
This works:

var Days = ["2010-5-5", "2010-5-20", ...];

My Datepicker only accepts dates as above mentioned (yyyy-m-d),
but I want to fill my array like this (yyyy-mm-dd), it doesn't work:

var Days = ["2010-05-05", "2010-05-20", ...];

Can I change this in any way? any help? Thanks!
With a php array I want to add dates from a MySQL Database. But all these dates come in yyyy-mm-dd.