on 10-15-2009 9:08 AM
Dear Friends,
The standard SAP BAPI in use BAPI_OBJCL_GETDETAILS returns the date in float type in the field allocvaluenum the attribute being valuefrom. Would like to know how can i convert this float type into date type to be displayed in the portal.
Thanks and regards
SantoshKumar
Hi
As I guess Its not a float Its long type
Use below code for this
import java.util.*;
import java.text.*;
public class LongToDate {
public static void main(String[] args)throws Exception {
Date date = new Date();
DateFormat dataformat = DateFormat.
getDateInstance(DateFormat.LONG);
String s4 = dataformat.format(date);
System.out.println(dataformat.format(date));
} }
Best Regards
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.