Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
xslt how to convert month number to month name?
ex: 1 to januray and so on?!!
Any Idea on this?
Thanks
Hi Ali,
Have a look at the funtions in EXSLT - there's a function called monthname() - e.g.:
<xsl:value-of select="Exslt.ExsltDatesAndTimes:monthname($currentPage/@createDate)" />
/Chriztian
Great solution. simple and straight forward.
Thanks a lot Chriztian.
Cheers
az I had my node name as month like 7.
I have used this as it might be useful for others.
<xsl:value-of select="Exslt.ExsltDatesAndTimes:monthname(concat('1900/',@nodeName,'/1'))"/>
Ali
if you have a date, you can use following:
<xsl:value-of select="umbraco.library:FormatDateTime(date,'MMMM')"/>
all right?
Sun,
Basically your approach works the same way as the other one.
But thanks anyway.
Cheer
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
xslt how to convert month number to month name?
xslt how to convert month number to month name?
ex: 1 to januray and so on?!!
Any Idea on this?
Thanks
Hi Ali,
Have a look at the funtions in EXSLT - there's a function called monthname() - e.g.:
/Chriztian
Great solution. simple and straight forward.
Thanks a lot Chriztian.
Cheers
az I had my node name as month like 7.
I have used this as it might be useful for others.
Ali
if you have a date, you can use following:
<xsl:value-of select="umbraco.library:FormatDateTime(date,'MMMM')"/>
all right?
Sun,
Basically your approach works the same way as the other one.
But thanks anyway.
Cheer
Ali
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.