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
downloadingdownloading 

Calander

HI , 

i wanna display a date picker on my visualforce page

How is this possible using Apex code, 

could any one help me how would i achieve

would be helpful if any example or sample is shown for 

better understanding

 

 

thanks

Navatar_DbSupNavatar_DbSup

Hi,

 

Try the below code sample:

 

<apex:page >
<apex:form >
<table>

<!-- <input id="demo3" type="text" size="25"><a href="javascript&colon;NewCal('demo3','ddmmmyyyy',true,24)"><img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date"></a> -->
<!-- NewCal([textbox id],[date format],[show time in calendar?],[time mode (12,24)?]) -->

<td> Date<br></br><input id="t" name="datee" onfocus="DatePicker.pickDate(false,

't', false);" size="12" tabindex="28" type="text" /><span class="dateFormat">[&nbsp;<a

href="javascript&colon;DatePicker.insertDate('2/3/2011', 't', true);"

>2/3/2011</a>&nbsp;]</span></td>

</table>
</apex:form>
</apex:page>

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.