Nobody knows the best day to buy. Dollar-cost averaging sidesteps the question: you invest the same amount on a fixed schedule, such as $100 on the first of every month, whatever the price is doing.
Because the amount is fixed, you automatically buy more shares when the price is low and fewer when it is high. Say the price is $50, then $25, then $50. Three $100 purchases buy 2, 4 and 2 shares: 8 shares for $300, an average cost of $37.50, even though the price averaged about $41.67.
The real benefit is behaviour. A schedule keeps you investing through scary headlines, which is exactly when most people freeze or sell. It turns a hard decision into a habit.
It is not magic. If you already have a lump sum, investing it all at once has historically done better more often than not, simply because markets have risen more often than they have fallen. And if the thing you are buying keeps falling for years, averaging in will not save you. It suits broad funds far better than single risky stocks.