ToThaiFullDate2
This commit is contained in:
parent
3786ef4b78
commit
a5b0d2e911
2 changed files with 14 additions and 2 deletions
|
|
@ -98,6 +98,18 @@ class Extension {
|
|||
);
|
||||
}
|
||||
|
||||
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();
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue