Date Time format - global override?

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

Date Time format - global override?

aray
I am looking to see if there a global way to format Date/Time fields displayed on the UI  to be restricted to mins. Right now it shows up at several places with seconds and millisec (eg 2003-11-20 13:48:19.105).

Searching found some tips on handling it at ftl level per field but would be nice if there is a trick to handle it at a global level. The stored data in database would still be with all the precision upto millsec.

Searching through the mailing list archive found the link below but couldn't dig further into the reference Jira issue
http://www.nabble.com/Date-formatting-in-widget-forms-to5037385.html#a5037385

Can anyone share some tricks? :-)

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

Re: Date Time format - global override?

Adrian Crum
There is no global setting. You can format date/time strings using UEL:

http://api.ofbiz.org/org/ofbiz/base/util/string/UelFunctions.html

-Adrian

ARays wrote:

> I am looking to see if there a global way to format Date/Time fields
> displayed on the UI  to be restricted to mins. Right now it shows up at
> several places with seconds and millisec (eg 2003-11-20 13:48:19.105).
>
> Searching found some tips on handling it at ftl level per field but would be
> nice if there is a trick to handle it at a global level. The stored data in
> database would still be with all the precision upto millsec.
>
> Searching through the mailing list archive found the link below but couldn't
> dig further into the reference Jira issue
> http://www.nabble.com/Date-formatting-in-widget-forms-to5037385.html#a5037385
>
> Can anyone share some tricks? :-)
>
> - Aray