본문 바로가기

업무/ASIQ

작업월의 마지막날짜 2자리 찾아오기

select convert(char(20),days(date(cast(dateformat(months(today(),1),'yyyymmdd') as char(6)) || '01'), -1),112)