How to format timestamp(yyyy-mm-dd) in my include-form

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to format timestamp(yyyy-mm-dd) in my include-form

sqlien
Hi,

I would like to display only the date(yyyy-mm-dd) of my field of the type timestamp in my include form. How to do it ?
this my form:

 <form name="listInscription" type="list"  
                list-name="list" target="viewInscrCertif"  title="" paginate-target="viewInscrCertif"
                default-title-style="tableheadtext" default-widget-style="tabletext" default-tooltip-style="tabletext" >

       <field name="dateInscr" title="Date d'inscr"> 
       <display/>
       </field>
       <field name="Note" title="Note obtenue"> 
       <display/>
       </field>
    </form>

Thanks for your help
Reply | Threaded
Open this post in threaded view
|

Re: How to format timestamp(yyyy-mm-dd) in my include-form

Hans Bakker
You can do that with a bsh snippet, see invoiceforms.xml for examples.

On Tuesday 24 July 2007 15:08, sqlien wrote:

> Hi,
>
> I would like to display only the date(yyyy-mm-dd) of my field of the type
> timestamp in my include form. How to do it ?
> this my form:
>
>  <form name="listInscription" type="list"
>                 list-name="list" target="viewInscrCertif"  title=""
> paginate-target="viewInscrCertif"
>                 default-title-style="tableheadtext"
> default-widget-style="tabletext" default-tooltip-style="tabletext" >
>
>        <field name="dateInscr" title="Date d'inscr">
>        <display/>
>        </field>
>        <field name="Note" title="Note obtenue">
>        <display/>
>        </field>
>     </form>
>
> Thanks for your help
Reply | Threaded
Open this post in threaded view
|

Re: How to format timestamp(yyyy-mm-dd) in my include-form

hans_bakker
In reply to this post by sqlien
You can do that with a bsh snippet, see invoiceforms.xml for examples.

On Tuesday 24 July 2007 15:08, sqlien wrote:

> Hi,
>
> I would like to display only the date(yyyy-mm-dd) of my field of the type
> timestamp in my include form. How to do it ?
> this my form:
>
>  <form name="listInscription" type="list"
>                 list-name="list" target="viewInscrCertif"  title=""
> paginate-target="viewInscrCertif"
>                 default-title-style="tableheadtext"
> default-widget-style="tabletext" default-tooltip-style="tabletext" >
>
>        <field name="dateInscr" title="Date d'inscr">
>        <display/>
>        </field>
>        <field name="Note" title="Note obtenue">
>        <display/>
>        </field>
>     </form>
>
> Thanks for your help
--

http://Antwebsystems.com: Quality OFBiz support with competitive rates.
Reply | Threaded
Open this post in threaded view
|

Re: How to format timestamp(yyyy-mm-dd) in my include-form

sqlien
In reply to this post by Hans Bakker
Thank you Hans for your help

Sqlien
Hans Bakker wrote
You can do that with a bsh snippet, see invoiceforms.xml for examples.

On Tuesday 24 July 2007 15:08, sqlien wrote:
> Hi,
>
> I would like to display only the date(yyyy-mm-dd) of my field of the type
> timestamp in my include form. How to do it ?
> this my form:
>
>  <form name="listInscription" type="list"
>                 list-name="list" target="viewInscrCertif"  title=""
> paginate-target="viewInscrCertif"
>                 default-title-style="tableheadtext"
> default-widget-style="tabletext" default-tooltip-style="tabletext" >
>
>        <field name="dateInscr" title="Date d'inscr">
>        <display/>
>        </field>
>        <field name="Note" title="Note obtenue">
>        <display/>
>        </field>
>     </form>
>
> Thanks for your help