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
I have this:
<xsl:value-of select="umbraco.library:FormatDateTime(data [@alias='eventDate'], 'DD')"/>
How do I force it to have the leading zero.. e.g. I want to display 03 not 3.
From -> http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/FormatDateTime
MonthMMMM = Full month name spelled out ('August')MMM = Abbreviated month name ('Aug')MM = 2 digit month ('08')M = 1 or 2 digit month ('8')Daydddd = Full day of week ('Thursday')ddd = Abbreviated day of the week ('Thu')dd = 2 digit day ('06')d = 1 or 2 digit day ('6')Yeary or yy = 2 digit year ('99')yyyy = 4 digit year ('1999')Hourh = 1 or 2 digit hour ('9')hh = 2 digit hour ('09')H = 24 hour ('21')Minutem = 1 or 2 digit minute ('3')mm = 2 digit minute('03')
Hope this helps,Dan
could it be a casing issue?? dd vs DD
let us know what you discover.
dd works.. just thought I needed something else. Thank you so much.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Day format , forcing leading zero.
I have this:
<xsl:value-of select="umbraco.library:FormatDateTime(data [@alias='eventDate'], 'DD')"/>
How do I force it to have the leading zero.. e.g. I want to display 03 not 3.
From -> http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/FormatDateTime
Hope this helps,
Dan
could it be a casing issue?? dd vs DD
let us know what you discover.
dd works.. just thought I needed something else. Thank you so much.
is working on a reply...