I am using date type field as Input type
where serviceAssetItem is an instance of a wrapper
class as follows:
<apex:pageBlockTable value="{!ServiceAsset}" var="serviceAssetItem" id="assetListTable">
<apex:column headerValue="Sales Date">
<apex:input type="date" value="{!serviceAssetItem.SalesDate}"/>
</apex:column>
</apex:pageBlockTable>
Sales Date
field is displaying as follows:
If I have SObject
like objServiceAsset
, then using below code 'Sales Date` is showing like this.
<apex:pageBlock title="Add Item">
<apex:pageBlockSection>
<apex:inputField value="{!objServiceAsset.Sales_Date__c}"/>
</apex:pageBlockSection>
How can I have this SFDC date picker
to be displayed in my first example where the object instance is not of SOBject
.