change in date dropdown menu

found another code to replace long date dropdown menu code
BUT don’t know why it’s shown in block….I’ll fix it later