This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Date function in XSL


Hi,
  Try this to get the current date in the required format

<xsl:eval>formatDate(new Date().getVarDate(), "MMMM dd',' yyyy");</xsl:eval>

Rama.

> -----Original Message-----
> From:	mxmodi@duke-energy.com [SMTP:mxmodi@duke-energy.com]
> Sent:	Wednesday, October 11, 2000 10:14 AM
> To:	xsl-list@mulberrytech.com
> Subject:	Date function in XSL
> 
> Hi,
> 
> Is there a date() function in XSLT? Here is what I am trying to do:
> 
> I read a range of values for a week from a XML file into a <select> box. I
> would like the current week to be the default week selected in the select
> box. I plan to achieve this with JAvascript onload() functionality. I am
> having trouble with passing the current date value into XSLT after it has
> been rendered.
> 
> Any ideas?
> 
> Thanks for the help.
> 
> Maulik
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]