You need to sign in to do that
Don't have an account?

InputField datepicker - want the calendar pop-up, but don't want today's date
Hi,
I have an inputfield on the page, for a Date field. I want the popup with the calendar, but don't want today's date next to the field. How do I do that? Thanks.
<apex:inputField value="{!object.my_date_field__c}"/>
screenshot: http://postimg.org/image/riaufvzfp/
You can do a bit off css trick
All Answers
Visualforce page:
<apex:page controller="datePicker" id="mypage">
<apex:form>
Date: <apex:inputText value="{!datename}" size="10" id="demo" onfocus="DatePicker.pickDate(false, this , false);" />
</apex:form>
</apex:page>
Apex Controller:
public class DatePicker
{
public String datename {get; set;}
}
You can do a bit off css trick
Superb, thank you both.
The below code doesn't works for Date Picker Calendar Popup. I have tried in both the desktop and mobile version. Do we have any alternative?
Visualforce page:
<apex:page controller="datePicker">
<apex:form>
Date: <apex:inputText value="{!datename}" size="10" id="demo" onfocus="DatePicker.pickDate(false, this , false);" />
</apex:form>
</apex:page>
Apex Controller:
public class DatePicker
{
public String datename {get; set;}
}