1) Script Title: Jason's Date Input Calendar

2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...oncalendar.htm

3) Describe problem: First thanks for a great script! Works like a charm.

I'm trying to format the output so that it reads (ie) Jan 15, 2009 but haven't had any success. Is there a way to change the DateFormat beyond the given options? Or reformat the output without passing it through a database?

Also I'm trying to create a variable for the default date so that an error check of the form will allow the entered values to 'stick' if the other parts of the form need to be amended. I'm not great at scripting and have tried this:

function mydate(t) {

<script>DateInput('arrivedate', true, mydate('$defaultdate'), '')</script>

With $defaultdate being a php variable.

Obviously doesn't work.

Thanks for any help.