Anonymous user
Talk:Date format: Difference between revisions
→Leading zeros: added another comment.
m (→Leading zeros: unuseful comment) |
(→Leading zeros: added another comment.) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 16:
::*European: dd.mm.yyyy
::*ISO: yyyy-mm-dd
::::::::: There is (maybe not-so-common) format (I think SAS uses it a lot): '''mmMonthyyyy''' (no leading zeros) as in (today): '''5Jul2018''' (using the 3-char English month name). I don't know if this particular format has a name. --[[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 03:03, 6 July 2018 (UTC)
:::::::::: I have to say, that is the ''weirdest'' format I ever heard of. I would have expected it to have a day in there somewhere instead of a month twice. ;) BTW, if you aren't specifying leading zeros for days or months you typically use one place-holder; so July 5, 2018 in the dmmmyyyy format would be 5Jul2018 --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 11:52, 6 July 2018 (UTC)
::::::::::: Thanks for catching that error. (I had to re-read what I wrote before I saw my typo). I meant to say: '''dMmmyyyy''' where '''Mmm''' is the capitalized three letter month name (in English). I suppose the '''dd''' could be used, but a leading zero for the day-of-month would be superfluous, but it would make all dates more consistant when numerous dates are displayed. Also note that not all languages have a unique three-letter abbreviation for the name of the month. I suppose that not being English centric has its drawbacks. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 17:55, 6 July 2018 (UTC)
::Note that each format uses different separator. You should always use correct separator for each format so that people will know which format is used.
::Here in Rosetta Code, the main thing is that all the implementations implement the same task. Therefore all the implementations should use the same format.
Line 23 ⟶ 30:
:::::: "American" and "European" do not identify a standard but an "habit", so there can't exist people doing wrong or right: it's just common use; and standards matter only when they matter, i.e. in the context requires them. I won't comply to any standard or "common habit" when writing, unless it's an official document requiring compliance to a specific format. --[[User:ShinTakezou|ShinTakezou]] 17:20, 16 May 2009 (UTC)
::::: "Be strict in what you generate, liberal in what you accept." (From unknown) --[[User:Short Circuit|Short Circuit]] 22:17, 15 May 2009 (UTC)
:::::: [http://en.wikipedia.org/wiki/Robustness_Principle Postel's Law]. The further discussion there is worth reading. --[[User:Kevin Reid|Kevin Reid]] 19:00, 16 May 2009 (UTC)
|