Skip to content

DatePipe wrong german short date format #16838

@mbeckenbach

Description

@mbeckenbach

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see

Current behavior
When using locale 'de-DE':

{{myDate | date: 'short'}} returns day and month numbers < 10 without a leading 0
Example 23.3.2017 13:25

Expected behavior
Format should be 23.03.2017 13:25
Same leading 0 for the day as for the month.

Minimal reproduction of the problem with instructions
Set locale to 'de-DE' and output any date in short format.

What is the motivation / use case for changing the behavior?
Correct date formating :-)

  • Angular version: 2.0.X
    ´4.1.x

  • Browser:
    All

  • Language:
    Typescript

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: i18nIssues related to localization and internationalizationtype: bug/fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions