Date format

From Support
Jump to navigation Jump to search
Revision as of 19 May 2020 at 21:29.
The highlighted comment was created in this revision.

Date format

How to change date format in this message ($3 parameter)? I would like to change it from YYYY-MM-DD to DD.-MM.-YYYY.

    MaGa (talk)16:14, 17 May 2020

    Correction: target date format should be DD. MM. YYYY. (not DD.-MM.-YYYY).

      MaGa (talk)15:50, 18 May 2020

      Correct date format is {{#timel:j. n. Y.}} and not {{#timel:d. m. Y.}} see Pomoć:Vremenska funkcija (or via interwiki).

        Bugoslav (razgovor) 23,59; 18. svibnja 2020. (SEV)21:59, 18 May 2020

        Ha?

          MaGa (talk)15:20, 19 May 2020

          We need to get this request as complete as possible, not just partially complete. Some of us at phab:T223988 requested the change of date format for Croatian, which revealed a hard-coded dot which produces formatting problems.

          In the text Formatting and parsing dateTimes as strings, IBM Knowledge Center Home of IBM product documentation, last updated: 2020-04-03, accessed: 2020-05-19 — it is described what d. M. yyyy. and d. MMMM yyyy. mean. The two before mentioned forms are most appropriate in Croatian language translations. The form dd. MM. yyyy. is not a desirable solution.

          Similarly, these are desirable solutions: %d. %m. %Y. or %d. %B %Y..

          Even if there is some amount of mystery around what code the programmers would use, it is necessary to describe the problem in as many details as possible, in order for the better end result.

            Bugoslav (razgovor) 23,29; 19. svibnja 2020. (SEV)21:29, 19 May 2020