获取年月日

获取时分秒

获取星期几

        int week=0;
        final Calendar c = Calendar.getInstance();
        week = (c.get(Calendar.DAY_OF_WEEK));
        if(week==0){
            textview.setText("星期六");
        }
        if(week==1){
            textview.setText("星期日");
        }
        if(week==2){
            textview.setText("星期一");
        }
        //……………………