Welcome to the board.
Every IF has 3 arguments
IF(Expression,Value_If_True,Value_If_False)
Only the Value_If_False argument is optional, and when it's omitted the formula will simply return FALSE if the Expression is False.
So you just need to tell it what to return "" instead of FALSE when the expression is False..
Try
=IF(A8>0,NOW(),"")