format date2thai
This commit is contained in:
parent
3ad5b119bb
commit
ab095716b1
3 changed files with 14 additions and 6 deletions
|
|
@ -116,7 +116,10 @@ const columns = ref<QTableProps["columns"]>([
|
|||
align: "left",
|
||||
label: "วันที่ยื่น",
|
||||
sortable: true,
|
||||
field: (row) => date2Thai(new Date(row.createdAt)),
|
||||
field: "createdAt",
|
||||
format(val, row) {
|
||||
return date2Thai(new Date(val));
|
||||
},
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
sortOrder: "da",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue