Minor date formatting issue
![](https://secure.gravatar.com/avatar/ce8f97ad3112ba0b6bf9fdc3d3fbb5af.jpg?s=120&d=mm&r=g)
Hello, all-- I am experimenting with the \currentdate command. I am finding that \currentdate [weekday,{,~},month,day+,{,~},year] which should work according to the Wiki, produces: Thursday, Augustday+, 2013 This command: \currentdate [weekday,{,~},month,day,{,~},year] works as expected. I also tried \date [][weekday,{,~},month,day+,{,~},year] but that produced the same result as above. I have a recent stable release of the standalone ConTeXt package from the Garden. Is there a new way to format a date with an ordinal indicator (-st, -nd, -rd, -th), or is that just not working at the moment? Please advise. -- Matt Gushee
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 09.08.2013 um 05:43 schrieb Matt Gushee
Hello, all--
I am experimenting with the \currentdate command. I am finding that
\currentdate [weekday,{,~},month,day+,{,~},year]
which should work according to the Wiki, produces:
Thursday, Augustday+, 2013
This command:
\currentdate [weekday,{,~},month,day,{,~},year]
works as expected. I also tried
\date [][weekday,{,~},month,day+,{,~},year]
but that produced the same result as above.
I have a recent stable release of the standalone ConTeXt package from the Garden. Is there a new way to format a date with an ordinal indicator (-st, -nd, -rd, -th), or is that just not working at the moment? Please advise.
It’s recommended to use “day:ord” with \currentdate but you also use “day:+”. \starttext \currentdate[day,space,day:ord,space,day:+] \stoptext Wolfgang
![](https://secure.gravatar.com/avatar/ce8f97ad3112ba0b6bf9fdc3d3fbb5af.jpg?s=120&d=mm&r=g)
Hi, Wolfgang--
On Fri, Aug 9, 2013 at 6:58 AM, Wolfgang Schuster
I am experimenting with the \currentdate command. I am finding that
\currentdate [weekday,{,~},month,day+,{,~},year]
which should work according to the Wiki, produces:
Thursday, Augustday+, 2013
It’s recommended to use “day:ord” with \currentdate but you also use “day:+”.
\starttext \currentdate[day,space,day:ord,space,day:+] \stoptext
Ah, yes, thank you! Perhaps someone should update the wiki? I suppose I could get an account and fix it myself ... if people don't mind someone as inexpert as me messing around in there ... -- Matt
![](https://secure.gravatar.com/avatar/1930c667fbd3884fd581e95eb4d5b15c.jpg?s=120&d=mm&r=g)
Perhaps someone should update the wiki? I suppose I could get an account and fix it myself ... if people don't mind someone as inexpert as me messing around in there ...
It would be very nice if you could do that. Don’t worry about
inexpertise -- people improving the documentation of how commands work
is always welcome. (If you can't get the formatting right, you can
leave it in plain text and I'll come in later and tidy it up.)
Cheers,
Sietse
On 10 August 2013 07:04, Matt Gushee
Hi, Wolfgang--
On Fri, Aug 9, 2013 at 6:58 AM, Wolfgang Schuster
wrote: I am experimenting with the \currentdate command. I am finding that
\currentdate [weekday,{,~},month,day+,{,~},year]
which should work according to the Wiki, produces:
Thursday, Augustday+, 2013
It’s recommended to use “day:ord” with \currentdate but you also use “day:+”.
\starttext \currentdate[day,space,day:ord,space,day:+] \stoptext
Ah, yes, thank you!
Perhaps someone should update the wiki? I suppose I could get an account and fix it myself ... if people don't mind someone as inexpert as me messing around in there ...
-- Matt ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Matt Gushee
-
Sietse Brouwer
-
Wolfgang Schuster