This page should already have imported (via include.jsp) the openmrs taglib, which contains a formatDate tag that you should use I believe.  eg. <openmrs:format date="${definition.dateCreated}" format="yyyy-MM-dd HH:mm:ss"/>