I am using a DateTime field on a Visualforce page which gets its value from the controller. I would like to know if I can use JavaScript or jQuery code directly on the Visualforce page to convert this DateTime Field (DT) to a date field on page load.
I know the JavaScript function is DT.format('MMMM d, yyyy'), but I need some idea on how to implement this.
My Page
<apex:page controller="dateTime_custom">
{!date}
</apex:page>
Controller
public class dateTime_custom {
public datetime getdate(){
return DateTime.Now();
}
}