Skip to Content

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

Clear Date component

Hi There,

I am trying to clear Date component using code but I don't see any such function available in scripting.  Does anyone has any idea on this.  Basically I am trying to clear this date field with nothing in it once I click on clear button.

Thank you for your suggestions

Raj

Tags:
Former Member
replied

Hello Raj,

As mentioned above you can give DATEFIELD_1.setDate("");

or

DATEFIELD_1.setDate("ymd");

the idea is to give invalid date to make the calender component empty .

Regards

Arjun KT

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