cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter D Sparkes <>
Subject 2.1 Cocoon Forms Formatting Date in Flow
Date Sun, 23 Sep 2012 21:14:39 GMT
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">

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



View raw message