getting date from shell and pass it to java

Hi,

I have a variable called asOfDate in shell script.
I need to pass it as a command line argument to a java command which will be called from the same shell script.
The format of that variable is "MM/DD/YYYY"

while doing echo, it is printing correctly in the java command.
ie. asOfDate="03/13/2008".

But inside the java program, it says an exception - parse error.

If we are running the java command in the command prompt by giving the asOfDate="03/13/2008" , it is running fine. Something wrong in the date given by the script.

Please advice. Thanks in advance.