I am using Angular 8 date Pipe and manually set the LOCAL to 'en-GB'. But the output of the date pipe still is in the US format (mm/dd/yyyy). Any idea what's the issue? or Am I missing something?
const datePipe = new DatePipe('en-GB');
return datePipe.transform(value, 'short');
You need to write the below code.