on 10-04-2009 7:05 AM
Hi Experts,
I have created Web Dynpro program. I have to set one field "start_date" as first date of year. For example if current date is 04/10/2009, then program should set value of field "start_date" as 01/01/2009.
If suppose program is used on 12/12/2012, then program should set the value of "start_date" as 01/01/2012.
Please peovide me some code.
Regards,
Gary
Hi,
This line should give you the current year.
Calendar.getInstance().get(Calendar.YEAR);
Prefix 01/01/ to this will give you the first day of that year.
Thanks,
Venkat
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 | |
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.