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">[
<a href="javascript:DatePicker.insertDate('', 't', true);"
>2/3/2011</a> ]</span></td>
</table>
</apex:form>
</apex:page>
The output will be as shown in the image given below
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">[
<a href="javascript:DatePicker.insertDate('', 't', true);"
>2/3/2011</a> ]</span></td>
</table>
</apex:form>
</apex:page>
The output will be as shown in the image given below
No comments:
Post a Comment