In my model I have: <fd:field id="startdate" required="true"> <fd:label>Start Date:</fd:label> <fd:datatype base="date"> <fd:convertor type="formatting"> <fd:patterns> <fd:pattern>dd/MM/yyyy</fd:pattern> </fd:patterns> </fd:convertor> </fd:datatype> </fd:field>
In my js I have: function enquiry() { ..... form.showForm("enquiry-display-pipeline" ); var startdate =model.startdate; I then put startdate into an email and send it The received email has the startdate as eg Mon Aug 27 00:00:00 BST 2012 Please, how can I format it as 27/0/2012 or get rid of the 00:00:00 BST Thanks peter