Complex sentence: Writing and recording for the album began as early as July 2010, but ended in late 2010 due to Lovato's rehabilitation.
Split into simpler sentences: Writing and recording for the album began as early as July 2010. But ended in late 2010, due to Lovato's rehabilitation.