How to display a Date/Time field

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

How to display a Date/Time field

Bruno Busco
Hi,
working with a TimeStamp field I have it rendered as yyyy-MM-dd HH:mm if I
use the <display type="date-time"/>
and I have it rendered as yyyy-MM-dd HH:mm:ss.SSS if I specify no type.

How can I have it rendered as yyyy-MM-dd HH:mm:ss ?

Thank you,
Bruno
Reply | Threaded
Open this post in threaded view
|

RE: How to display a Date/Time field

hardik handa
if you find no other option try using substring just before getting it rendered !!
CHEERS !!

Regards,
Hardik Handa
Software Engineer - CMHP-RETAIL-COE-eCommerce
HCL Technologies Ltd.
C-22A, Sector 57, NOIDA. 201301, UP. (India)
Tel: +91-120-2586417-19
Mob: +91-9811671898
www.hcltech.com
www.hcl.com


________________________________________
From: Bruno Busco [[hidden email]]
Sent: Saturday, March 05, 2011 5:19 PM
To: [hidden email]
Subject: How to display a Date/Time field

Hi,
working with a TimeStamp field I have it rendered as yyyy-MM-dd HH:mm if I
use the <display type="date-time"/>
and I have it rendered as yyyy-MM-dd HH:mm:ss.SSS if I specify no type.

How can I have it rendered as yyyy-MM-dd HH:mm:ss ?

Thank you,
Bruno

::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: How to display a Date/Time field

Bruno Busco
Thank you Hardik.
BTW I was looking for a form field widget configuration option.

-Bruno

2011/3/5 Hardik Handa <[hidden email]>

> if you find no other option try using substring just before getting it
> rendered !!
> CHEERS !!
>
> Regards,
> Hardik Handa
> Software Engineer - CMHP-RETAIL-COE-eCommerce
> HCL Technologies Ltd.
> C-22A, Sector 57, NOIDA. 201301, UP. (India)
> Tel: +91-120-2586417-19
> Mob: +91-9811671898
> www.hcltech.com
> www.hcl.com
>
>
> ________________________________________
> From: Bruno Busco [[hidden email]]
> Sent: Saturday, March 05, 2011 5:19 PM
> To: [hidden email]
> Subject: How to display a Date/Time field
>
> Hi,
> working with a TimeStamp field I have it rendered as yyyy-MM-dd HH:mm if I
> use the <display type="date-time"/>
> and I have it rendered as yyyy-MM-dd HH:mm:ss.SSS if I specify no type.
>
> How can I have it rendered as yyyy-MM-dd HH:mm:ss ?
>
> Thank you,
> Bruno
>
> ::DISCLAIMER::
>
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its
> affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect
> the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification,
> distribution and / or publication of
> this message without the prior written consent of the author of this e-mail
> is strictly prohibited. If you have
> received this email in error please delete it and notify the sender
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
>
> -----------------------------------------------------------------------------------------------------------------------
>