fix format

This commit is contained in:
AdisakKanthawilang 2024-06-06 18:06:01 +07:00
parent 594371d23f
commit 8a624efe6f
2 changed files with 11 additions and 15 deletions

View file

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