throw exception on bad parameter received and year/month formatted to be compliant with almost all js datepicker