syncfusion / ej2-angular-ui-components

Syncfusion Angular UI components library offer more than 50+ cross-browser, responsive, and lightweight angular UI controls for building modern web applications.
https://www.syncfusion.com/angular-ui-components
Other
275 stars 114 forks source link

Change the date format #19

Closed ghost closed 4 years ago

ghost commented 5 years ago

Hello Team,

I'm using below code to change the format of start and end date in date range picker, but it doesn't work. Please guide me on what's going wrong.

HTML:

<ejs-daterangepicker

ejDatePicker

      id="dateRangePicker"
      [format]="dateFormat"
      placeholder="Filter by date range"
      formControlName="daterange"
      name="daterange"></ejs-daterangepicker>

TS: this.dateFormat = 'EEE, MMM d';

Note: I want 'Thu, Apr 18' (EEE, MMM d) format.

Thanks in advance.

Gopigovin commented 5 years ago

Hi anoopyadav,

Thanks for contacting Syncfusion product.

We have checked your reported scenario and based shared code snippet, we have prepared sample. Unfortunately the reported issue is not reproduced in our end.

Sample Link: https://stackblitz.com/edit/angular-txdoid?file=app.component.html

Demo: https://ej2.syncfusion.com/angular/demos/#/material/daterangepicker/date-format

If your issue is not resolved, Kindly provide us following details to proceed further

• Please let know if you are facing any console error • Please let know the product version that you are using. • Please let know the browser details and you have set any locale. • If possible, can you please reproduce your issue in the above test sample?

Regards, Gopi G.

ajithr commented 4 years ago

We are closing this issue since there is no recent activity. Feel free to reopen the issue and update your comments for the reinvestigation.