This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
private:koding:hostcms:modules:xsl:show_human_date [03.02.17 в 16:29] maximzasorin_gmail.com создано |
private:koding:hostcms:modules:xsl:show_human_date [27.06.17 в 14:50] (current) maximzasorin_gmail.com ↷ Страница перемещена из private:koding:hostcms:xsl:useful:show_human_date в private:koding:hostcms:modules:xsl:show_human_date |
||
---|---|---|---|
Line 14: | Line 14: | ||
<xsl:param name="datetime" /> | <xsl:param name="datetime" /> | ||
- | <xsl:variable name="date" select="substring-before(datetime, ' ')" /> | + | <xsl:variable name="date" select="substring-before($datetime, ' ')" /> |
- | <xsl:variable name="day" select="substring-before(date, '.')" /> | + | <xsl:variable name="day" select="substring-before($date, '.')" /> |
- | <xsl:variable name="month" select="number(substring-before(substring-after(date, '.'), '.'))" /> | + | <xsl:variable name="month" select="number(substring-before(substring-after($date, '.'), '.'))" /> |
- | <xsl:variable name="year" select="substring-after(substring-after(date, '.'), '.')" /> | + | <xsl:variable name="year" select="substring-after(substring-after($date, '.'), '.')" /> |
<xsl:value-of select="$day" /> | <xsl:value-of select="$day" /> |