[#66089832] cast ref_date to end of month