Recurring Deposit products with i18n

This commit is contained in:
Jose Alberto Hernandez
2024-04-20 12:37:00 -06:00
committed by Jose Alberto Hernandez
parent 64758cb847
commit 6ef471d7c0
49 changed files with 889 additions and 724 deletions
+4
View File
@@ -21,6 +21,10 @@ export class Dates {
return datePipe.transform(timestamp, dateFormat);
}
public formatDateAsString(value: Date, dateFormat: string): string {
return moment(value).format(dateFormat);
}
public parseDate(value: any): Date {
if (value instanceof Array) {
return moment(value.join('-'), 'YYYY-MM-DD').toDate();