==> กำหนดช่วงวันที่ปีงบประมาณ
SET @bgyear := '2568'; #input your year
SET @ds := DATE_FORMAT(CONCAT((@bgyear-543),'-09','-30'),'%Y-%m-%d');
SET @ds1 := DATE_ADD(DATE_SUB(@ds,INTERVAL 1 YEAR),INTERVAL 1 DAY);
SET @ds2 := @ds;
/* SET End Date of last year */
SET @ds1 := IF(@bgyear='2568','2024-10-01',@ds1);
SET @ds2 := IF(@bgyear='2568','2025-05-31',@ds2);
SELECT @ds1, @ds2;
This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
0 ความคิดเห็น:
แสดงความคิดเห็น