• Alex Trenchard-Smith
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

i am having issue with date field.

 

i have one field of type Date in my custom object. and i am storing the date value in it successfully.

 

here is my code:

 

public Date agendaDate2; // user name which will be provided by user   

public Date getAgendaDate2()   

{       

return agendaDate2;   

}   

public void setAgendaDate2(Date dateValue)   

{

       agendaDate2= dateValue;   

}

 

i am showing date value in <apex:inputText> my VF page

 

but it shows the "Fri Nov 18 00:00:00 GMT 2011" in this format.

 

i want to show this date in  12/11/2011 format.

 

show how can i do that ?

 

please help i am newbie in salesforce.

 

any kind of help will be greatly appriciated.

 

thanks in advance...

Vishal