Play Games

Search This Blog

Tuesday, August 26, 2014

Date picker in Visualforce page

Date picker in Visualforce page

The following is the sample code to display date picker in visualforce page

<apex:page >
<apex:form >
<table>
<td> Date<br></br><input id="t" name="datee" onfocus="DatePicker.pickDate(false,
't', false);" size="12" tabindex="28" type="text" />
<span class="dateFormat"  style="display:none">[&nbsp;

<a href="javascript&colon;DatePicker.insertDate('', 't', true);"
>2/3/2011</a>&nbsp;]</span></td>
</table>
</apex:form>
</apex:page>

The output will be as shown in the image given below


                   

No comments:

Post a Comment