Webtags/Parameters: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
All locales offer both numerical and alphabetical formats for representing a day.
 
The table below isshows the definitivespecifications guide to how to ensure you do specify justfor the day part of any date specifications.
[[File:Badge vMx.png]]Again, there are extra complications with MX, the "d" modifier is not shown because it is inconsistent, the format it returns depends on which tag name it is used with - see [[#Date formats]] table later! For some tag names it returns just "day of month" (like "%d"), for others it returns the full "Short date format" (like "ddddd")!
 
The table below is the definitive guide to how to ensure you do specify just the day part of any date specifications.
{| class="wikitable" border="1"
|-
!style="width:150px" | [[File:Badge v1.png]]}Delphi Specifier for Cumulus 1.9.x
!style="width:150px" | [[File:Badge vMx.png]]Mono/.NET Specifier for Cumulus MX
!style="width:600px" | Displays
!style="width:600px" | Example
|-
| d (single character)
| %d
|Displays the day as a number without a leading zero (1-31).
 
[[File:Badge vMx.png]]Note that Cumulus MX requires a ' ' (space), '%' or another modifier to be included, as 'd' on its own is inconsistent - see [[#Date formats]] table).
| 27 produced by: <#metdate format="%d">
* [[File:Badge v1.png]]<#metdate format="d">
* [[File:Badge vMx.png]]<#metdate format="%d">
|-
|dd (2 characters long)
|dd
|Displays the day as a number with a leading zero (01-31).
|07 produced by <#metdate format="dd">
|-
|ddd (3 characters long)
|ddd
|Displays the day as an abbreviation (inusing Australianthe willstrings output "Sun."appropriate to "Satthe Locale.") usingIt themay stringsproduce appropriatea todot at the Localeend (seeof note for monththe abbreviation)string.
|'Wed' produced by <#metdate format="ddd"> (UK English locale)
|-
|dddd (4 characters long)
|dddd
|Displays the day as a full name (Sunday-Saturday) using the strings appropriate to the Locale.
|'Friday' produced by <#metdate format="dddd"> (English locale)
|}

Navigation menu