• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Populating select box with dates

 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my JSP page I need to populate the Ship Date drop-down box with last 30 dates in the format 11/08/2004, 11/07/2004, 11/06/2004.... I'm running out of ideas. I really appreciate anu suggestions.

I'm stuck at this point...



Thanks much.
 
ernest fakudze
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dilip,

You need to use the caledar class to do this. Please see some code I've just written for you below.

 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a million for your time. It worked !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic