ปีที่อัพโหลดรูป kk1

This commit is contained in:
AdisakKanthawilang 2024-11-04 17:20:07 +07:00
parent 087b2ddfd6
commit 69826b394d
3 changed files with 21 additions and 0 deletions

View file

@ -228,6 +228,13 @@ class Extension {
);
}
public static ToThaiShortYear(value: Date) {
let yy = value.getFullYear() < 2400 ? value.getFullYear() + 543 : value.getFullYear();
return (
yy.toString()
);
}
public static sumObjectValues(array: any, propertyName: any) {
let sum = 0;
for (let i = 0; i < array.length; i++) {