************ Controller *****************
public class Sample {
public Date dat {get;set;}
public Sample() {
}
}
****************Visualforce Page *******************
<apex:page docType="html-5.0" controller="Sample" showHeader="false">
<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() {
}
}
****************Visualforce Page *******************
<apex:page docType="html-5.0" controller="Sample" showHeader="false">
<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>
Comments
Post a Comment