You may have other errors ... best to post the whole section (or program).
/*
char year= "YYYY";
char month="MM";
char day= "DD";
*/
/* But ... I suspect you want to have: */
const char* year= "YYYY";
const char* month="MM";
const char* day= "DD";