Currently, I am utilizing Angular and have incorporated the ng-pick-datetime
npm. However, when attempting to adjust the format after selecting a date (dd/MM/yyyy), it consistently displays as (MM/dd/yyyy) instead. I am uncertain about how to rectify this situation.
To provide further clarity on my issue, refer to the screenshot below:
https://i.stack.imgur.com/zP3dK.jpg
HTML
<input
[owlDateTime]="dt1"
[owlDateTimeTrigger]="dt1"
placeholder="Wedding Anniversary"
formControlName="wedding"
class="form-control"
onkeydown="return false"
id="text-input"
name="wedding"
max="{{ maxDate | date: 'yyyy-MM-dd' }}"
/>
<owl-date-time #dt1 [pickerType]="'calendar'"></owl-date-time>
I am seeking to achieve the desired result of (dd/MM/yyyy). Thanks in advance for any assistance provided...