Allow formatting non-padded dates

This commit is contained in:
Michael Shamoon
2022-03-10 15:11:08 -08:00
parent 5872584aa6
commit 548f6a41ae
3 changed files with 13 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ export class LocalizedDateParserFormatter extends NgbDateParserFormatter {
* It also strips commas or periods before running formatting,
* which allows quick entry of the date on the numpad.
*/
private preformatDateInput(value: string): string {
public preformatDateInput(value: string): string {
let inputFormat = this.getDateInputFormat()
let dateSeparator = inputFormat.replace(/[dmy]/gi, '').charAt(0)