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
Lisitha reddy Lakkireddy 4Lisitha reddy Lakkireddy 4 

Customized Date field

  • I have a field that needs users to select only FUTURE WEDNESDAYS.
  • The dates must be submitted by wednesday 12pm for the following wednesday. We should no longer be able to select next wednesday if we are trying to enter a date after 12pm on a wednesday.
SwethaSwetha (Salesforce Developers) 
HI Lisitha,
Check the code in https://salesforce.stackexchange.com/questions/105197/display-only-future-dates-in-datepicker. You need to customize the code by setting min max dates to reflect Wednesday.

Copied text from post:
"you can use <apex:input type="date" with jQuery Datepicker where property minDate set to 0 (to show only future dates). I used a normal html <input type="text" to show the jQuery Datepicker and hide the <apex:input type="date" field. The entered value is copied with the code $j("#fromDatePicker").value($j("#myPage\\:myForm\\:fromDate").value());
 
Other helpful link: https://stackoverflow.com/questions/42064478/how-to-enable-only-the-current-and-future-dates-in-2-cutoff-days

If this information helps, please mark the answer as best.Thank you