J
|
Jane 11/29/2006 |
Hi, <!-- legend -->
<script> var t = new Date(); editform.value_OrderDate.value = ""+t.getDate()+"/"+(t.getMonth()+1)+"/"+t.getFullYear()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds(); </script> |
Q
|
Quizosde author 11/30/2006 |
Thank you for the response, but I still seem to be having trouble. Using the Javascript code, I still wasn't able to correct for the 2 hour timezone difference, and I still wasn't able to put that data in my datetime field. Using your method, the date input box just spit out "01/00/0", the same result as if I put date("m/d/Y h:i a") as the default value. If I changed the input type to a text area, the date would display with the given parameters, however. |
J
|
Jane 12/1/2006 |
This code works for me. |