Subj : How do I use JavaScript Date object in my Java code? To : netscape.public.mozilla.jseng From : "Jim" Date : Mon Jan 26 2004 05:59 am I am trying to access the JavaScript Object in my Java code. Wonder how I should do it. The following is what I am trying: 1. I created a scriptable object class, say 'MyScriptable'. It has a method jsFunction_setDate(Object date) which creates a java.sql.date object from the date passed in. It then saves the date in the datebase through JDBC. In a javscript, I will use it JavaScript as: var dt = new Date(); MyScriptable.setDate(dt); How would I be able to access the JavaScript Date object in my java function jsFunction_setDate()? 2. In reverse to the above, how can I create a JavaScript Date object from java.sql.date in jsFunction_getDate()? Thank a lot! Jim .