I recently implemented the following code snippet.
Here is a snippet of my Visualforce page code:
<Script>
//Window Load
document.getElementById("Today_Date").value = "2014-02-02";
</Script>
<input type="date" value="{!myDate}" id="myDate"/>
<apex:commandButton action="{!CallMyMethod}" value="End" >
Although the date is visible, it is not being passed to Apex.
public date myDate{ get; set; }
public PageReference CallMyMethod() {
//I am receiving null when trying to use myDate;
return null;
}
Does anyone have a solution for this issue?