I'm having trouble passing a JavaScript date type var as the apex param value. The following is a sample code segment...
<script>
var today = new Date(93740000);
<apex:outputText value="{0,date,yyyy',' M',' d}">
<apex:param value="today" />
</apex:outputText>
</script>
This gives me the error:
Error: The value attribute on is not in a valid format. It must be a positive number, and of type Number, Date, Time, or Choice.
How can I resolve this issue and use the JavaScript date in Visualforce code?