I have data being entered from a userform where the row is a variable. My goal would be to add the formula below to a column when data gets entered

=IF(ISBLANK(C2),"",DATE(YEAR(C2),MONTH(C2),DAY(C2)))

 ws.Cells(iRow, 4).Formula =
I can't seem to figure out how to get all the quotation marks correct to make the formula work. Any help would be appreciated.