Date Range

Hello All ,

I have Date Range input for providing a search Date range. The value of this is a string which cant be used directly !
Has anyone implemented any code to get the DateRange Value ?
I get the string format of the Object as “com.webMethods.caf.faces.data.object.DateRange@2fe717fe”

Now how do i convert this to an object and get the value out of it ?

br,
Kiran

The DateRange object has a calculateStart() and calculateEnd() API that can give you the resolved start and end date for the submitted value.

See the javadocs at:
[url]http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite9-7/My_webMethods/9-7_CAF_and_MWS_Java_API_Reference/com/webmethods/caf/faces/data/object/DateRange.html[/url]

and the tag documentation at:
[url]http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite9-7/My_webMethods/9-7_CAF_Tag_Library_Reference/caf_h/inputDateRange.html[/url]

1 Like