+ Start a Discussion
Nawar ShammuNawar Shammu 

Hi there, I am using the following code in visualforce: <apex:repeat value="{!Opportunity.Invoices__r}" var="line2"> {!line2.Invoice_Date__c} to generate an invoice date, but when I click on generate invoice the invoice date shows the time

Hi there, I am using the following code in visualforce to generate an invoice datew: <apex:repeat value="{!Opportunity.Invoices__r}" var="line2">    {!line2.Invoice_Date__c} but when I click on generate invoice the invoice date shows the time as well 00:00:00 GMT - how do I remove that so it only shows me the date as Day Month Date Year - currently shows me Thu Oct 27 00:00:00 GMT 2016

Please help its taken me 3 days of searching without any success
JeffreyStevensJeffreyStevens
Output the date like this...

  <apex:outputText value=”{0,date,MM/dd/yyyy}”>
        <apex:param value=”{!line2.Invoice_Date__c}”/>
  </apex:outputText>
 
Nawar ShammuNawar Shammu
Thanks for that Jeffrey,

When I insert that code it gives me the following error: Error: Missing required attribute value in <apex:param> in Invoice at line 17 column 9
JeffreyStevensJeffreyStevens
Re-type it - don't just paste it. 

I bet that the quote marks are bad.

 
Nawar ShammuNawar Shammu
That is correct my friend thank you.

One final error - Error: Unknown property 'OpportunityStandardController.line2'

Do I need to update something somewhere?
Nawar ShammuNawar Shammu
Hi Jefferey,

Can you please assist, as this is quiet urgent and crucial, I havent been able to fix that error.
MoggyMoggy
this was answered in https://developer.salesforce.com/forums/?id=9060G000000Xe3zQAC