1. 获取今天是这一年的第几天
select dayofyear(curdate()); 或者是 select dayofyear(now());
2. 获取还有多少天元旦的方法
select datediff("2021-1-1",curdate());
注意1 今年是闰年 注意2 今天算了两遍