I don't think the "highway" between Guilin and Yangshuo has been improved much, so that it's still about a 1.5 hour drive each way. A daytrip from Guilin is definitely doable, but depending on what you want to see and do in Yangshuo, imo it's better to spend at least a night there.