Sign up ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I'm using <apex:input> tag to display date. It's working fine in Chrome but it's not working in Mozilla.

<apex:input type="date" id="dateid">
share|improve this question

3 Answers 3

The apex:input component is translated into an HTML input element in the generated HTML. The input type of "date" is not supported in Firefox at this time, whereas it is supported in Chrome.


share|improve this answer
In fact, Chrome seems to have support for more HTML 5 types than any other right now. – sfdcfox Aug 25 '14 at 18:38
Is their any solution to resolve this issue in Mozilla using apex:input only. – Bujji Aug 26 '14 at 8:21
You could use JavaScript to do feature detection and then provide your own datepicker. Search and you'll find examples such as this one. – Peter Knolle Aug 26 '14 at 10:50

Try :

<apex:inputField value="{!MyDate}" label="My date :" type="date"/>


share|improve this answer
Can we use value attribute in <apex:inputfield> tag with controller fields.I think we can use only fields in object level. – Bujji Aug 26 '14 at 8:24
The value="{!MyDate}" call the getMyDate() controller method. That's what you want to know ? – SF_user Aug 26 '14 at 8:28
If we use inputfiled value with controoler methods it will gives below error.. Error: Could not resolve the entity from <apex:inputField> value binding '{!mydate1}'. <apex:inputField> can only be used with SObjects, or objects that are Visualforce field component resolvable. – Bujji Aug 26 '14 at 10:20
Yes, your value must return a SObject. – SF_user Aug 26 '14 at 10:48

I also faced this problem with the and I used the and got the same error which you are getting.

As a workaround what I did is I created an instance of the standard controller record and used its date field as a container to hold the

<apex:inputField value="{InstanceOfObject.AnyDateField}">

This way you will be able to hold the input from the page and use it from the Instance in a controller.

Inside Controller:

ObjectApi InstanceOfObject {get;set;}

Here the Object's Instance will just act as a holder for date inputted from page.

Thank You.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.