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

Date Format in VF pages

hi i write one query for getting the minmum and maxmium date .
what i write its excuting correct and giving the result like this format

Date First Photo Taken: Sun Nov 11 09:18:00 GMT 2012
Date LastPhoto Taken: Thu Nov 15 09:59:00 GMT 2012

but i want the result date should be like this : 16/8/2011

how can i change my result to this format can any one tel me how can we show date in this format.
thanks advance.

List<AggregateResult> shootlst= [select  min(Date_Photo_Taken__c) minm,max(Date_Photo_Taken__c) maxm from ShMgmt__c];
        for(AggregateResult ar:shootlst)
        // query for shooting :Date First Photo Taken
        system.debug('vp retail'+phot);
// query for shooting :Date LastPhoto Taken
        system.debug('vp retail'+phottakn);

any one help me.

Jay EcklesJay Eckles

Date.format() will return a formatted date string based on the user's settings. 


<apex:outputText value="{0,date,MM'/'dd'/'yyyy}">
<apex:param value="{!userInputAppointment.Appt_Date__c}”/>   

try this out