In my JSP code I have the following:
<input type="text" name="fromDT" value="<% strfDT %>" ...
I need to convert this strfDT input, which is in mm/dd/yyyy format, to a valid date object. I tried to do the following but is does not work. I guess, because 'request.Paramterer'
does not process the special characters (/).
String strFromDT = request.Parameter("fromDT"
;
Date dtFromDT = new Date(strFromDT);
Can anyone tell me how best to handel this kind of requests?
Thanks in advance, Alex
<input type="text" name="fromDT" value="<% strfDT %>" ...
I need to convert this strfDT input, which is in mm/dd/yyyy format, to a valid date object. I tried to do the following but is does not work. I guess, because 'request.Paramterer'
does not process the special characters (/).
String strFromDT = request.Parameter("fromDT"
Date dtFromDT = new Date(strFromDT);
Can anyone tell me how best to handel this kind of requests?
Thanks in advance, Alex