dvdates=2018-01-01 00:00:00string
1.convert(varchar(10),dvdates,121) as dvdate date
dvdate =2018-01co
2.substring(dvdate,1,7) AS dvdatedarc
dvdated=2018-01