Skip to Content
author's profile photo Former Member
Former Member

How to modify a Date selection


I have two date field, one is StartDate another is EndDate.

I want to calculate the EndDate once the StartDate is Selected.

Currently, I make use of the "Enter" properties which tag to the calendar (Date input properties). This generate a method in the view controller which allow me to place the calculation of the End Date.

When I select the StartDate from the calendar, it does not trigger the event Enter of the input date properties unless I hit the "ENTER" button of the keyboard. In additional, when I set the endDate, it has runtime error say that the value is not modifiable.

How do I make it such that when I select the desire StartDate (from the input calendar), it will trigger the event to calculate a endDate to display.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:05 AM


    You can give a try by making the attributes bound to the start date and end date as calculated.

    Do your enddate calculation inside the setter of the beginDate.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.