Changes

Jump to navigation Jump to search
385 bytes added ,  10:00, 16 November 2021
no edit summary
</cd:assignments>
<cd:keywords list="yes" optional="yes" ordinal="2">
<cd:keywordsdoc>The [[Commandvalue/name|name]] suffixes indicate number conversions. Any conversion, either built-in or defined by {{cmd|defineconversion}}, can be used there.</cd:keywordsdoc>
<cd:constant type="year">Year using arabic digits</cd:constant>
<cd:constant method="range" prefix="year" type="cd:name">Year using a defined conversion</cd:constant>
You can also insert delimiters between the fields (e.g. commas, spaces, see examples).</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\date[d=25,m=4,y=2008] \par
\date[d=25,m=4,y=2008][dd,--,mm,--,yy] \par
\date[d=25,m=4,y=2008][weekday,month,day,{,~},year] \par
</context>
</cd:example><cd:example title="Changing the default formatting">To change the formatting of the date in a global fashion the command {{cmd|setuplanguage}} is used. A change to ISO 8601 for instance can be achieved as follows: <context source="yes" text="Produces">\setuplanguage [en] [date={year, –, mm, –, dd}] \date[d=25,m=4,y=2008]</context> For non english the setuplanguage command should be followed or preceded by setting a mainlanguage or it will not show up.<texcode>\setuplanguage [nl] [date={dd, –, mm, –, year}]\mainlanguage [nl]</texcode></cd:example><cd:example title="Using and setting up mnemonics">To get a short month use <code>month:mnem</code> or <code>MONTH:mnem</code> as follows:
<context source="yes">
</cd:example><cd:example title="Changing the default formatting">To change the formatting of the date in a global fashion the command {{cmd|setuplanguage}} is used. A change to ISO 8601 for instance can be achieved as follows: <context source="yes" text="Produces">\setuplanguage [en] [date={year, –, mm, –, dd}] \date[d=25,m=4,y=2008]</context> For non english the setuplanguage command should be followed or preceded by setting a mainlanguage or it will not show up.<texcode>\setuplanguage [nl] [date={dd, –, mm, –, year}]\mainlanguage [nl]</texcode></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:commandref name="definedate"></cd:commandref>
<cd:commandref name="currentdate"></cd:commandref>
<cd:commandref name="setuplanguage"></cd:commandref><cd:commandref name="setuplabeltext"></cd:commandref><cd:commandref name="convertnumber"></cd:commandref><cd:commandref name="defineconversion"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu