on 2006 Oct 13 4:01 PM
Hi
I want setting a month of a Date variable.
please help me
import java.util.Date;
import java.util.Calendar;
...
final Date d1 = new Date();
final Calendar c = Calendar.getInstance();
c.setTime(d1);
c.set(Calendar.MONTH, 11); // December
final Date d2 = c.getTime();
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
12 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.