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
Shwetal DesaiShwetal Desai 

DatePicker in VF Page

I have one DateTime field and i have used VF Page for that object..
Now i want to use Datepicker in VF Page. is it possible?
how can i do this?

bind the date value to a variable in your controller.

VF page
<apex:page controller="sampleCon">
<apex:inputField value="{!myDate}" />

public class sampleCon {
public date myDate {get; set;}

 Hope this helps.

I don't think it works. apex:inputField only works for SObject field. You can't even compile the source code.