+ Start a Discussion
yaramareddy radhikayaramareddy radhika 

Please tell me code to get todays date link beside the date field in visual force

Rowallim TechnologyRowallim Technology
Hi Yaramareddy radhika
In your controller, create a property:
     public Date Today { get { return Date.today();
}
}

In the VF page, try using:
<apex:outputText value="{0,date}">
<apex:param value="{!Today}" />
</apex:outputText>
Hope it will help you.
if you think your question is solved markk it as best answer.
Thanks
sandeep madhavsandeep madhav
Hi,

Use <apex:inputfield> by default today ill be displayed on calendar. DOnt make standardstyleesheet =false on page.