on 11-20-2008 12:25 PM
Hello experts,
could anyone please explain me how I can convert a date to Timestamp?
Many Thanks
Marco
Hi,
Following is the code
Date dt = new Date(Calendar.getInstance().getTimeInMillis()); // Your exising sql Date .
Timestamp timestamp2 = new Timestamp(dt.getTime());
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
dat is the date variable
ts is Timestamp
Timestamp ts = new Timestamp(dat.getTime());
Regards,
Lakshmi Prasad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.