date difference problem
Bhushan Bhangale <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <A9F75F9AB514D611A69D0002A5AD9BED12BE6813@lmnukex05.lastminute.com> |
Hi,
I used the date difference template to get the difference between 2 dates. I
read the whole doc but the template output is not what it should be. Below
is the call template syntax I used.
<xsl:call-template name="date:difference">
<xsl:with-param name="start" select="2003-12-31" />
<xsl:with-param name="end" select="2003-12-04" />
</xsl:call-template>
The output should be -P0Y0M27D
But the output is P27Y
Please let me knwo if I am doing anything wrong or suggest me someother way
to get the difference between 2 dates. I just want number of days between 2
dates.
Bhushan Bhangale
Senior Systems Executive
address: 4 Buckingham Gate, London SW1E 6JP
tel: +44 (0)20 7802 4283
mob: +44 (0)79 5829 5054
email: [email protected]
do something lastminute.com
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________