View Single Post
  #6 (permalink)  
Old May 7th, 2008, 05:47 AM
joefawcett's Avatar
joefawcett joefawcett is offline
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Quote:
quote:Originally posted by mhkay
 There's a function current-dateTime() in XPath 2.0, and a function format-dateTime() in XSLT 2.0 that will format it the way you want - except for the EST bit (which might not work reliably because the function doesn't necessarily know that you're in the United States in winter; all it knows is the timezone offset -05:00)

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Winter in the US? I thought he was asking for Eastern Summer Time in Australia :)

--

Joe (Microsoft MVP - XML)
Reply With Quote