+ Start a Discussion
smagee13smagee13 

inputField dates and current date display

 Hello all,

 

I have a new VF page that lists a set of related cases to a custom object of Projects.  In the display of the data table, when I display input fields that are dates, SalesForce seems to also by default display the current date in the table just to the right of my date filed. 

 

Is there a way to disable this?

 

VisualForce Page

 

<apex:page standardController="Project_KA__c" showHeader="false"
sidebar="false" extensions="CustomController">
<apex:form >
<apex:pageBlock >

<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!saveChanges}" />
<apex:commandButton action="{!cancel}" value="Cancel" />
</apex:pageBlockButtons>

<apex:pageBlockSection title="Quick edit case list">
<apex:dataTable value="{!relatedCases}" var="CC" styleClass="list">
<apex:column headerValue="Case Number">
<apex:inputField value="{!CC.CaseNumber}" />
</apex:column>
<apex:column headerValue="Subject">
<apex:inputField value="{!CC.Subject}" />
</apex:column>
<apex:column headerValue="Status">
<apex:inputField value="{!CC.Status}" />
</apex:column>
<apex:column headerValue="Due Date">
<apex:inputField value="{!CC.Date_Du__c}" />
</apex:column>
<apex:column headerValue="Internal Due Date">
<apex:inputField value="{!CC.Internal_Date_Due__c}" />
</apex:column>
<apex:column headerValue="Owner">
<apex:inputField value="{!CC.OwnerID}" />
</apex:column>
</apex:dataTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>

 

 

 

 

 

 

CTU007CTU007

<apex:page standardController="Project_KA__c" showHeader="false" sidebar="false" extensions="CustomController"> <style> .dateFormat{display:none;} </style> <apex:form >

 

Add this to your page.