แก้รายงาน ก.พ.7

This commit is contained in:
Bright 2024-07-05 13:59:55 +07:00
parent 538ec8f8a1
commit 16ca14fc51
2 changed files with 26 additions and 16 deletions

View file

@ -99,6 +99,16 @@ class Extension {
yy
);
}
public static ToThaiFullDate2(value: Date) {
let yy = value.getFullYear() < 2400 ? value.getFullYear() + 543 : value.getFullYear();
return (
value.getDate() +
" " +
Extension.ToThaiMonth(value.getMonth() + 1) +
" " +
yy
);
}
public static ToThaiShortDate(value: Date) {
let yy = value.getFullYear() < 2400 ? value.getFullYear() + 543 : value.getFullYear();