on 01-23-2013 9:41 AM
Hello All,
i wrote one UDF to convert the Unix time to SAP.
long unixTime = Long.parseLong(Time);
String date = new java.text.SimpleDateFormat("yyyymmdd HH:mm:ss").format(new java.util.Date (unixTime*1000));
return date;
its not working for some unix time data like
unix : 1357476527 Output : 20134806 15:48:47
kindly help me if i was worng in writing the code.
Regards,
chinna
Hi,
String date = new java.text.SimpleDateFormat("yyyyMMdd HH:mm:ss").format(new java.util.Date (unixTime*1000)); will resolve it. Please check.
Regards,
Beena.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.