Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

DATE

Hi Experts,

i'm having a problem with date

1.i created attribute called From of Type Date

2.Binded with input field

3.by default it taking system date month year ......dd-mm-yyyy......25-09-2008

My problem is

i want to set that date to some other DD-mm-yyyy 01-01-2008 plz give me some solution

replied

Ramprasad,

Did you try this..

public void wdDoInit()
  {
    //@@begin wdDoInit()
	  Calendar calendar = new GregorianCalendar(2008, 0, 1);
	  Date date = new Date(calendar.getTimeInMillis());
	  wdContext.currentContextElement().setFrom(date);
    //@@end
  }

This will start the date at 01/01/2008 and user should be able to select any date.

Hope this helps.

Vishwas.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question