This commit is contained in:
AdisakKanthawilang 2024-06-06 17:18:05 +07:00
parent 7938797e9a
commit 594371d23f
2 changed files with 15 additions and 4 deletions

View file

@ -123,6 +123,17 @@ class Extension {
);
}
public static ToThaiShortDate_perfixMonthYear(value: Date) {
let yy = value.getFullYear() < 2400 ? value.getFullYear() + 543 : value.getFullYear();
return (
value.getDate() +
" เดือน " +
Extension.ToThaiShortMonth(value.getMonth() + 1) +
" พ.ศ. " +
yy
);
}
public static sumObjectValues(array: any, propertyName: any) {
let sum = 0;
for (let i = 0; i < array.length; i++) {