Selct column A dates then
Conditional formatting as you said
formula is below

=$B1="YES"