I think this is what you need

For the date in A1

=A1-DAY(A1)+1