Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Function to get System Date using XSLT

Status
Not open for further replies.

munnanext

Programmer
Aug 20, 2004
49
US
Hi Everyone,

I have an xml file. and i need to generate the html page out of it. I am using XSLT to achieve this. But When ever the page is rendered the user should get the current date. Can any one please explain how Can i achieve this using XSLT.

Thanks in Advance
 
XSLT 1.0 has no date function. XSLT 2.0 (in working draft) does. However, you could use JavaScript to do this:
Code:
var today = new Date()


Jon

"Asteroids do not concern me, Admiral. I want that ship, not excuses.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top