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
KevinsanKevinsan 

a date component for select a date

Hi all,
I need to select a date, and send the value to controller.
but I don't want the default input( in red suqare below), I just want a calendar picture here.
How to implement it? Thanks!
User-added image
<apex:page docType="html-5.0" controller="Sample">
<apex:form >
    <apex:pageBlock >
        <apex:pageBlockSection>
            <apex:pageBlockSectionItem>
                Date: <apex:input type="date" value="{!dat}"/>
            </apex:pageBlockSectionItem>
        </apex:pageBlockSection>
    </apex:pageBlock>
</apex:form>
</apex:page>
public class Sample {
    public Date dat {get;set;}
    public Sample() {

    }
}




 
KevinsanKevinsan
Anyone can help this issue?