Commit 0b38a2f4 authored by zhh's avatar zhh

test

parent 9612ac66
...@@ -11,9 +11,9 @@ public class Test { ...@@ -11,9 +11,9 @@ public class Test {
Date date=new Date(); Date date=new Date();
Calendar c=Calendar.getInstance(); Calendar c=Calendar.getInstance();
c.setTime(date); c.setTime(date);
c.add(Calendar.DAY_OF_MONTH, 1); //һ // c.add(Calendar.DAY_OF_MONTH, 1); //һ
System.out.println(sdf.format(c.getTime()));; // System.out.println(sdf.format(c.getTime()));;
//DAY_OF_WEEK
System.out.println(c.get(Calendar.DAY_OF_WEEK));
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment