获得某月最后一天,每月天数

    技术2022-05-11  103

    import java.util.Canlendar;

    Canlendar c=Canlendar.getInstance();c.set(2005,1,1);int a=get(Canlendar.MAY_OF_MONTH);//a=1c.set(2005,1,0);a=get(Canlendar.MAY_OF_MONTH);//a=31 


    最新回复(0)