Added function in elements to check for valid date format. If valid then process using getStudyDate(). If not, pass through.
Added back getStudyDate() function in pagebuilder class.
Fixed formatting of "if" statements
Merge pull request #261 from tomfuller2/master

Fixes for studydate getStudyDate() function being called twice