แปลงเป็นเดทต้อง yyyy อืม dd รูปแบบ
const formatYmd = date => date.toISOString().slice(0, 10);
formatYmd(new Date());
ยังไงเพื่อเปลี่ยนรูปแบบวันที่ใน excel ต้องอืม/dd/yyyy
To change the date display in Excel follow these steps:
Go to Format Cells > Custom
Enter dd/mm/yyyy in the available space.
The dates listed in your spreadsheet should be converted to the new format.