Hello,
I am applying this in my html
<div class="row">
<div class="col s6">
<input type="text" ngxDaterangepickerMd [(ngModel)]="selected" [locale]="locale" [showCustomRangeLabel]="true" [alwaysShowCalendars]="alwaysShowCalendars" [ranges]="ranges" [showClearButton]="true" [linkedCalendars]="true" [keepCalendarOpeningWithRange]="keepCalendarOpeningWithRange"
[showRangeLabelOnInput]="showRangeLabelOnInput" class="form-control" placeholder="Rango de fechas..." />
</div>
</div>
and in my ts:
locale: any = {
customRangeLabel: 'Personalizar2',
format: moment().format('dd/mm/yyyy'),
separator: ' - ', // default is ' - '
cancelLabel: 'Calcel', // detault is 'Cancel'
applyLabel: 'Apply', // detault is 'Apply',
daysOfWeek: [
'Do',
'Lu',
'Ma',
'Mi',
'Ju',
'Vi',
'Sa'
],
monthNames: [
'Enero',
'Febrero',
'Marzo',
'Abril',
'Mayo',
'Junio',
'Julio',
'Agusto',
'Septiembre',
'Octubre',
'Noviembre',
'Diciembre'
],
firstDay: 1 // first day is monday
};
the name change in the months if it works, but in the date format no. It always shows MM / DD / YYYY and I need DD / MM / YYYY how do I solve it?