This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Displaying date on webpage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Displaying date on webpage" Watch "Displaying date on webpage" New topic
Author

Displaying date on webpage

shivang sarawagi
Ranch Hand

Joined: Jun 19, 2008
Posts: 147
How do i display date on my webpage using javascript ??
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1


Javascript has a Date object. You could use that.

What did you try and problems are you facing?
shivang sarawagi
Ranch Hand

Joined: Jun 19, 2008
Posts: 147
i tried this code


but its not working.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

Where is this script placed? If it's not at the top level document.write() will not work as expected.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Displaying date on webpage
 
Similar Threads
How can we get current time
jsp email
Using DatePicker in JSP
how do I achieve below on the webPage
using string value as a variable name