Just use the first equation when it is certain that there will be no change in the moisture content (air passing through a heating coil, for example) but the second equation if the moisture content will be changing (due to condensation on a cooling coil, for example).
Regards,
Brian