fix
This commit is contained in:
parent
7938797e9a
commit
594371d23f
2 changed files with 15 additions and 4 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue