Skip to content

Question: DateTimePicker - Is there a way to use setLocale like the native Angular Material Date Picker? #173

Open
@MatthewLHolden

Description

@MatthewLHolden

I had an older component that used the Angular Material Date picker. Based on a database value, the locale would be updated for the date picker. Upon installing the Angular Material Components Date Time Picker, this no longer seems to work. As a test i created a method to try and manually call the locale change:

  setLocale(val){
    this.locale = val;
    this.dateAdapter.setLocale(val); 
  }

This doesn't work. Is there a way to change the locale of the DateTimePicker? I'm not using moment js within my application. Any assistance would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions