Dynamic Date Picker :-
Today i am going to explain about Dynamic Date Picker in vf page.
If we want to display a date field in Vf page using custom functionality. (But not Standard field using Standard controller). follow the code ...
In Vf page:
---------
<script>
function DynamicDatePicker(d_id)
{
DatePicker.pickDate(true,d_id.id,false);
}
</script>
Date:: <apex:inputText value="{!var_date}" id="time" onfocus="DynamicDatePicker(this);"/>
In apex class:-
-----------
public Date var_date{get;set;}
Here the var_date is text field in Vf page, So i am using java script functionality to get the date Dynamically.