In your controller, create a property:
public Date Today { get { return Date.today(); }}
On the VF page, try using:
<apex:outputText value="{0,date}"> <apex:param value="{!Today}" /> </apex:outputText>
Details on date formatting can be found here and here .
source share