I need to hide the previous dates and months in my drop down if it is the current year. So the date should not be settable to a date before today's date, obviously. So if 2012 is selected, the months of January, February, and March won't exist in the picker, nor will April 1st (it being passed). Setting to 2013 will have all months/days available.
May be this kind of pseudo code may help you.
Get the current date from server. Do not get it from client side as it can be easily modified.
create an array with all the 12 months like Jan, Feb etc.
Get the current month from the date.
Now filter and fetch all the months including the current month
Now display current date as the first element in the list
Also, list the remaining months.