on 09-02-2005 12:27 PM
Hi,
I have a BAPI which requires a input in the form of date (mm-dd-yyy) to return a table to me.
I have created an input field with the model attribute of date type(which is stored in the backend).
My problem is: i am unable to initialize the field in the doinit() process,If i have to initialize for a string i use:
input.setCustomer_Number("");
PLease let me know how i go abt doing this.
Thanks
Hi,
You can use the following code dor date convertion.
Calendar cal = Calendar.getInstance(TimeZone.getDefault());
String DATE_FORMAT = "MM-dd-yy";
java.text.SimpleDateFormat sdf =new java.text.SimpleDateFormat(DATE_FORMAT);
sdf.setTimeZone(TimeZone.getDefault());
java.util.Date dt1=null;
dt1=sdf.parse(sdf.format(cal.getTime()));
Regards, Anilkumar
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 | |
10 | |
10 | |
10 | |
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.