parent
a03ce9d55a
commit
b0358de9cb
4 changed files with 43 additions and 36 deletions
|
|
@ -228,6 +228,13 @@ class Extension {
|
|||
);
|
||||
}
|
||||
|
||||
public static ToThaiShortDate_monthYear2(value: Date) {
|
||||
let yy = value.getFullYear() < 2400 ? value.getFullYear() + 543 : value.getFullYear();
|
||||
return (
|
||||
value.getDate() + " " + Extension.ToThaiMonth(value.getMonth() + 1) + " พ.ศ. " + yy
|
||||
);
|
||||
}
|
||||
|
||||
public static ToThaiShortYear(value: Date) {
|
||||
let yy = value.getFullYear() < 2400 ? value.getFullYear() + 543 : value.getFullYear();
|
||||
return yy.toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue