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

display task activity date in mm/dd/yyyy format
How can I display the task activity date in the mm/dd/yyyy format on a visualforce page? I have a custom page with an inputText that uses a DatePickerComponent, that will initially put the date into the correct format...i.e. 8/12/2013. After saving the record and returning to the page to edit the record, the date is then in the format of: Mon Aug 12 00:00:00 GMT 2013, so if I try and update, it throws the error:
Value 'Mon Aug 12 00:00:00 GMT 2013' cannot be converted from Text to Date
How can I resolve this issue?
Thanks.
Hi,
Use <apex:inputField> instaed of <apex:inputText> if that is usable in your case. <apex:inputField> will bring up the default Salesforce.com Date Picker for the input fields.
All Answers
Hi,
You can specify the format of date as shown below:
link to full doc can be found @ http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_outputText.htm
That doesn't work with an inputText component, which is what I'm using. That only works with outputText.
Hi,
Use <apex:inputField> instaed of <apex:inputText> if that is usable in your case. <apex:inputField> will bring up the default Salesforce.com Date Picker for the input fields.