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
manjirimanjiri 

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

Hi,

 

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?

 

Thanks..




 

Nick34536345Nick34536345

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