This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting current date in a textbox  RSS feed

 
Krish Pat
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I get the current date to be displayed in a text box in JSP/Javascript? I am a novice groping my way around the world of programming, any help would be appreciated...
Thanks,
Krish
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get the current date in Java with:

You could display the current date in a JSP page with:
 
Krish Pat
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Chris,
That helped
--Krish
 
Brusk Baran
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript or Java??
I guess the question is about a textbox while it is being loaded.Then one must use JavaScript functions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!