Improve grammaticallity of the given text:
According to the weather forecast, it would rain in the afternoon on that day.
According to the weather forecast, it was going to rain in the afternoon on that day.