• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getParameter problem....

 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I try to get fldFixedDate from my template and put it in dFixedDate but "dFixedDate" it's type is Date and doesn't accept this way how can I solve this problem?
dFixedDate = req.getParameter("fldFixedDate");
Thanks,
Elahe
 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends I solved it this way please share if you have better idea
...
ddFixedDate = req.getParameter("fldFixedDate");
long l = Date.parse( ddFixedDate );
dFixedDate = new java.sql.Date(l);
...
 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My God what a sign! I thought it is Happy face like thik
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic