+ Start a Discussion

Want to show default salesforce "Invalid Date and Time" on vf page



In vf page I am using <apex:inputField> for date objects.

when I am entering some string in those fields and then trying to save, on some pages it is showing default salesforce message "Invalid Date and Time". But sometimes it is not showing the message.

I have checked the debug logs. In both the cases it it showing VF_PAGE_MESSAGE|Invalid Date and Time.

So I am not getting, why it is not showing in some cases. 

Does anyone come across issue like this?





Try adding a <apex:messages/> tag somewhere in the VF page, if you don't have it already.