I am using the format function in SOQL to format a date to DD/MM/YYYY when retrieved.
I can see the formattedCreatedDate in the debug logs and it is displaying correctly but cant reference it in a VF page. Not sure why?
My SOQL is:
consultancyOpps = [Select Id, Name, CreatedDate,FORMAT(CreatedDate) formattedCreatedDate from Opportunity where RecordType.Name = 'Consultancy ORDER BY CreatedDate DESC];
My VF page is trying to fetch {!consultancyOpps.formattedCreatedDate} but I get an error. I can display the other fields fine (Id, Name).
Not sure what I need to do to be able to display the formattedCreatedDate