I have been playing around with this JavaScript to get the right format on my date output, but with no luck. I need this code to show as Month Day, Year. As of now it's showing dd/mm/yy.
Below is the script I'm using.
<script>
var tD = new Date();
var datestr = tD.getDate() + (tD.getMonth()+ 1) + ", " + tD.getFullYear();
document.write("<input type='hidden' name='date' value='"+datestr+"'>");
</script>