function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
huniversehuniverse 

get date value from inputfield

Hi all

 

I am displaying datepicker through following code

 

controller:

         Task t = new Task();
         public Date selecteddate = t.activitydate;
         public Task getTask() { return t; }

 

page:

          <apex:inputField value="{!task.activitydate}"/>

 

 

 

Is there any way to get selected date value from inputfield and pass it to controller. I want  date from the above calendar and need to pass that date to event instance.  Please suggest code sample, examples to explore more. I have searched but not able to solve the problem.

 

Thanks