Take the 2-minute tour ×
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

2 Answers 2

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.

See: http://caniuse.com/#feat=input-datetime

share|improve this answer
1  
In fact, Chrome seems to have support for more HTML 5 types than any other right now. –  sfdcfox Aug 25 at 18:38
    
Is their any solution to resolve this issue in Mozilla using apex:input only. –  Sreenivas Aug 26 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 at 10:50

Try :

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

See http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_inputField.htm

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. –  Sreenivas Aug 26 at 8:24
    
The value="{!MyDate}" call the getMyDate() controller method. That's what you want to know ? –  SF_user Aug 26 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. –  Sreenivas Aug 26 at 10:20
    
Yes, your value must return a SObject. –  SF_user Aug 26 at 10:48

Your Answer

 
discard

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.