ปีที่อัพโหลดรูป kk1
This commit is contained in:
parent
087b2ddfd6
commit
69826b394d
3 changed files with 21 additions and 0 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue