on 04-27-2011 3:53 PM
hi,
(currentDate + udf to convert into GMT ) need to map to Ttime
The Time stamp is in CET. Need to convert into GMT.
can u tell me how to create udf to convert into GMT
thanks in advance
Similar way ..
java.text.DateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
df.setCalendar(java.util.Calendar.getInstance(new SimpleTimeZone(0,"GMT")));
Result.add(df.format(new Date()));
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try with something like this:
import java.util.*;
import java.text.*;
java.text.SimpleDateFormat format = new
SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
java.util.Calendar cal = Calendar.
getInstance(new SimpleTimeZone(0, "GMT"));
format.setCalendar(cal);
java.util.Date date = format.parse("2010-01-01 00:15:30");
Result.add(date.toString());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.