aspose file tools*
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
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: 148
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: 148
i tried this code


but its not working.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying date on webpage