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
Satya413Satya413 

Display Case Records based on selected close Date in VF Page

Hi All,

I am trying to display the case records that are closed on a particular date in VF Page. My inputfield does not allow me to select the closed date. Below is my code. Any help is appreciated. 

VF Page:

<apex:page controller="caseclosedetails" showHeader="false">
  <apex:form >
    <apex:pageblock >
      <apex:inputField value="{!ca.closeddate}" />
      <apex:commandButton value="Submit" action="{!getdata}"/>
    </apex:pageblock>
  </apex:form>
</apex:page>

Controller: 

public class caseclosedetails {

      public case ca {get; set;}
      
      public caseclosedetails() {
      case c = new case();  
      }
    
      public void getdata(){
      
      }
}

Thank you,
Satya
ManojjenaManojjena
Hi Satya,

Do one thing create a custom field with dataType Date and  time and use that in input field will allow you to select the date .
 
<apex:inputField value="{!case.Custom_Date__c}"/>

Let me know if it helps .
Satya413Satya413
Hi Manoj,

Thanks for your reply. I have created a custom object 'closedate__c' and it worked. However, it is displaying the current date as default. Below is the screenshot. Think I am half way through.

User-added image
Thank you,
Satya